lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1523095295-5575-1-git-send-email-solomonwen@163.com> Date: Sat, 7 Apr 2018 18:01:35 +0800 From: Wenle Chen <solomonwen@....com> To: chenwenle@...wei.com Cc: jhogan@...nel.org, linux@...ck-us.net, rostedt@...dmis.org, peterz@...radead.org, linux-kernel@...r.kernel.org, solachenclever@...mail.com, solomonwen@....com Subject: [PATCH] scripts : sync the var type between memory and print From: Wenle Chen <chenwenle@...wei.com> The %d in printf need get a int But the real type of these vars is unsigned. It may let some compilers show a warning. Signed-off-by: Wenle Chen <chenwenle@...wei.com> --- scripts/recordmcount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 8c9691c..6f900fa 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -459,7 +459,7 @@ do_file(char const *const fname) switch (ehdr->e_ident[EI_DATA]) { static unsigned int const endian = 1; default: - fprintf(stderr, "unrecognized ELF data encoding %d: %s\n", + fprintf(stderr, "unrecognized ELF data encoding %u: %s\n", ehdr->e_ident[EI_DATA], fname); fail_file(); break; @@ -500,7 +500,7 @@ do_file(char const *const fname) gpfx = 0; switch (w2(ehdr->e_machine)) { default: - fprintf(stderr, "unrecognized e_machine %d %s\n", + fprintf(stderr, "unrecognized e_machine %u %s\n", w2(ehdr->e_machine), fname); fail_file(); break; @@ -541,7 +541,7 @@ do_file(char const *const fname) switch (ehdr->e_ident[EI_CLASS]) { default: - fprintf(stderr, "unrecognized ELF class %d %s\n", + fprintf(stderr, "unrecognized ELF class %u %s\n", ehdr->e_ident[EI_CLASS], fname); fail_file(); break; -- 2.7.4
Powered by blists - more mailing lists