From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: Using unsigned specifiers for unsigned arguments for printf
Date: Tue, 28 May 2013 21:27:56 +0400 [thread overview]
Message-ID: <1369762076-7179-1-git-send-email-shc_work@mail.ru> (raw)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
arch/arm/lib/bootm.c | 2 +-
arch/arm/lib/module.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index e7a0625..0d3b59e 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -326,7 +326,7 @@ static int aimage_load_resource(int fd, struct resource *r, void* buf, int ps)
ret = read_full(fd, buf, to_read);
if (ret < 0)
- printf("could not read dummy %d\n", to_read);
+ printf("could not read dummy %u\n", to_read);
return ret;
}
diff --git a/arch/arm/lib/module.c b/arch/arm/lib/module.c
index 643a8be..be7965d 100644
--- a/arch/arm/lib/module.c
+++ b/arch/arm/lib/module.c
@@ -34,7 +34,7 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
offset = ELF32_R_SYM(rel->r_info);
if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) {
- printf("%s: bad relocation, section %d reloc %d\n",
+ printf("%s: bad relocation, section %u reloc %u\n",
module->name, relindex, i);
return -ENOEXEC;
}
@@ -43,7 +43,7 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) {
printf("%s: out of bounds relocation, "
- "section %d reloc %d offset %d size %d\n",
+ "section %u reloc %u offset %d size %d\n",
module->name, relindex, i, rel->r_offset,
dstsec->sh_size);
return -ENOEXEC;
@@ -68,7 +68,7 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
offset <= (s32)0xfe000000 ||
offset >= (s32)0x02000000) {
printf("%s: relocation out of range, section "
- "%d reloc %d sym '%s'\n", module->name,
+ "%u reloc %u sym '%s'\n", module->name,
relindex, i, strtab + sym->st_name);
return -ENOEXEC;
}
--
1.8.1.5
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-05-28 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 17:27 Alexander Shiyan [this message]
2013-05-31 6:54 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1369762076-7179-1-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox