]> Pileus Git - ~andy/linux/commit
tools lib traceevent: Fix trace_printk for long integers
authorWolfgang Mauerer <wolfgang.mauerer@siemens.com>
Thu, 22 Mar 2012 10:18:21 +0000 (11:18 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 4 Jul 2012 04:40:30 +0000 (13:40 +0900)
commitc5b35b731965d16fa8c966e288489857097e0b25
tree95c3fc1fff8c2e47755914a85cb2f1ac8bd61d03
parentaaf05c725bed1c7a8c940d9215662c78bea05dfd
tools lib traceevent: Fix trace_printk for long integers

On 32 bit systems, a conversion of the trace_printk format string
"%lu" -> "%llu" is intended (similar for %lx etc.) when a trace was
taken on a machine with 64 bit long integers. However, the current
code computes the bogus transformation "%lu" -> "%u".  Fix this.

Besides that, the transformation is only required on systems that don't
use 64 bits for long integers natively.

Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1332411501-8059-3-git-send-email-wolfgang.mauerer@siemens.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/lib/traceevent/event-parse.c