summaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/kallsyms.c6
-rw-r--r--scripts/kwbimage.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index b3591a916b..9392f09181 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -286,7 +286,7 @@ static void write_src(void)
printf("\n");
output_label("kallsyms_num_syms");
- printf("\tPTR\t%d\n", table_cnt);
+ printf("\tPTR\t%u\n", table_cnt);
printf("\n");
/* table of offset markers, that give the offset in the compressed stream
@@ -315,7 +315,7 @@ static void write_src(void)
output_label("kallsyms_markers");
for (i = 0; i < ((table_cnt + 255) >> 8); i++)
- printf("\tPTR\t%d\n", markers[i]);
+ printf("\tPTR\t%u\n", markers[i]);
printf("\n");
free(markers);
@@ -332,7 +332,7 @@ static void write_src(void)
output_label("kallsyms_token_index");
for (i = 0; i < 256; i++)
- printf("\t.short\t%d\n", best_idx[i]);
+ printf("\t.short\t%u\n", best_idx[i]);
printf("\n");
}
diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c
index f8abeb1781..5b8e73892c 100644
--- a/scripts/kwbimage.c
+++ b/scripts/kwbimage.c
@@ -1265,7 +1265,7 @@ static void image_dump_config(struct image_cfg_element *image_cfg,
struct image_cfg_element *e = &image_cfg[cfgi];
switch (e->type) {
case IMAGE_CFG_VERSION:
- printf("VERSION %d\n", e->version);
+ printf("VERSION %u\n", e->version);
break;
case IMAGE_CFG_BOOT_FROM:
printf("BOOTFROM %s\n",