scripts: Fixed printf format mismatch
authornixiaoming <nixiaoming@huawei.com>
Thu, 24 May 2018 03:16:12 +0000 (11:16 +0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 29 May 2018 13:04:12 +0000 (22:04 +0900)
commitac5db1fc89bf84d7479761e0de855e6376fdab1e
treed3a9bb19679045dbe78fdd9c5d7b750d1bd3af45
parent656c107770e37759d0e888a1c38cd28792ca214b
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>
scripts/kallsyms.c
scripts/recordmcount.c
scripts/recordmcount.h