summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-21 22:15:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:05:51 +0200
commit9c63e92baaea8fd35d9892e197a97d3bb39079f4 (patch)
tree2375a04e74f083894db37d4bf8a2fa78619d46bc /lib
parent86afb22eae1230a84a7835dd370a0a744c92cb74 (diff)
downloadbarebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.gz
barebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.xz
treewide: fix signedness mixups in printf format specifiers
This most likely doesn't fix any real bugs, but it's the right thing to do and reduces the noise level with static checkers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/display_options.c2
-rw-r--r--lib/gui/picopng.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/display_options.c b/lib/display_options.c
index 0871552aaa..2d695e4b7c 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -62,7 +62,7 @@ char *size_human_readable(unsigned long long size)
ptr += sprintf(buf, "%lu", n);
if (m) {
- ptr += sprintf(ptr, ".%ld", m);
+ ptr += sprintf(ptr, ".%lu", m);
}
sprintf(ptr, " %ciB", c);
diff --git a/lib/gui/picopng.c b/lib/gui/picopng.c
index 77cd81cbad..3c0659f368 100644
--- a/lib/gui/picopng.c
+++ b/lib/gui/picopng.c
@@ -800,7 +800,7 @@ int main(int argc, char **argv)
#ifdef ALLOC_DEBUG
png_alloc_node_t *node;
for (node = png_alloc_head, n = 1; node; node = node->next, n++)
- printf("node %d (%p) addr = %p, size = %ld\n", n, node, node->addr, node->size);
+ printf("node %d (%p) addr = %p, size = %zu\n", n, node, node->addr, node->size);
#endif
png_alloc_free_all(); // also frees info and image data from PNG_decode