summaryrefslogtreecommitdiffstats
path: root/scripts/recordmcount.h
diff options
context:
space:
mode:
authornixiaoming2018-05-24 05:16:12 +0200
committerMasahiro Yamada2018-05-29 15:04:12 +0200
commitac5db1fc89bf84d7479761e0de855e6376fdab1e (patch)
treed3a9bb19679045dbe78fdd9c5d7b750d1bd3af45 /scripts/recordmcount.h
parentscripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation (diff)
downloadkernel-qcow2-linux-ac5db1fc89bf84d7479761e0de855e6376fdab1e.tar.gz
kernel-qcow2-linux-ac5db1fc89bf84d7479761e0de855e6376fdab1e.tar.xz
kernel-qcow2-linux-ac5db1fc89bf84d7479761e0de855e6376fdab1e.zip
scripts: Fixed printf format mismatch
scripts/kallsyms.c: function write_src: "printf", the #1 format specifier "d" need arg type "int", but the according arg "table_cnt" has type "unsigned int" scripts/recordmcount.c: function do_file: "fprintf", the #1 format specifier "d" need arg type "int", but the according arg "(*w2)(ehdr->e_machine)" has type "unsigned int" scripts/recordmcount.h: function find_secsym_ndx: "fprintf", the #1 format specifier "d" need arg type "int", but the according arg "txtndx" has type "unsigned int" Signed-off-by: nixiaoming <nixiaoming@huawei.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/recordmcount.h')
-rw-r--r--scripts/recordmcount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h
index b9897e2be404..2e7793735e14 100644
--- a/scripts/recordmcount.h
+++ b/scripts/recordmcount.h
@@ -441,7 +441,7 @@ static unsigned find_secsym_ndx(unsigned const txtndx,
return symp - sym0;
}
}
- fprintf(stderr, "Cannot find symbol for section %d: %s.\n",
+ fprintf(stderr, "Cannot find symbol for section %u: %s.\n",
txtndx, txtname);
fail_file();
}