diff options
author | Namhyung Kim <[email protected]> | 2013-07-31 17:21:01 +0900 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2014-01-02 16:17:24 -0500 |
commit | 50eb2672ce13d73e96f6cee84e78cfb52513ff48 (patch) | |
tree | 2c1c2ab3adb533566e2181a0c4423250e0b2e0fd /lib/memory-notifier-error-inject.c | |
parent | 306cfe2025adcba10fb883ad0c540f5541d1b086 (diff) |
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 <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: zhangwei(Jovi) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions