enh
2018-09-17 23:11:54 UTC
Not sure how I messed this up, since both the toybox and Android build
systems warn about this. (Android has -Werror, so at least it kept me
from checking this in there.)
---
toys/posix/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/posix/file.c b/toys/posix/file.c
index 4df0bc6..8d8d557 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -373,7 +373,7 @@ static void do_regular_file(int fd, char *name)
} else if (len > 0x32 && !memcmp(s, "BM", 2) && !memcmp(s+6,
"\0\0\0\0", 4)) {
int w = peek_le(s+0x12,4), h = peek_le(s+0x16,4), bpp = peek_le(s+0x1c,2);
- xprintf("BMP image, %d x %d, %d bpp, %s\n", w, h, bpp);
+ xprintf("BMP image, %d x %d, %d bpp\n", w, h, bpp);
} else {
char *what = 0;
int i, bytes;
systems warn about this. (Android has -Werror, so at least it kept me
from checking this in there.)
---
toys/posix/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/posix/file.c b/toys/posix/file.c
index 4df0bc6..8d8d557 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -373,7 +373,7 @@ static void do_regular_file(int fd, char *name)
} else if (len > 0x32 && !memcmp(s, "BM", 2) && !memcmp(s+6,
"\0\0\0\0", 4)) {
int w = peek_le(s+0x12,4), h = peek_le(s+0x16,4), bpp = peek_le(s+0x1c,2);
- xprintf("BMP image, %d x %d, %d bpp, %s\n", w, h, bpp);
+ xprintf("BMP image, %d x %d, %d bpp\n", w, h, bpp);
} else {
char *what = 0;
int i, bytes;
--
2.19.0.397.gdd90340f6a-goog
2.19.0.397.gdd90340f6a-goog