tracing/probes: Fix basic print type functions
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 31 Jul 2013 08:21:01 +0000 (17:21 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 2 Jan 2014 21:17:24 +0000 (16:17 -0500)
commit50eb2672ce13d73e96f6cee84e78cfb52513ff48
tree2c1c2ab3adb533566e2181a0c4423250e0b2e0fd
parent306cfe2025adcba10fb883ad0c540f5541d1b086
tracing/probes: Fix basic print type functions

The print format of s32 type was "ld" and it's casted to "long".  So
it turned out to print 4294967295 for "-1" on 64-bit systems.  Not
sure whether it worked well on 32-bit systems.

Anyway, it doesn't need to have cast argument at all since it already
casted using type pointer - just get rid of it.  Thanks to Oleg for
pointing that out.

And print 0x prefix for unsigned type as it shows hex numbers.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
kernel/trace/trace_probe.c