tools lib traceevent: Fix output of %llu for 64 bit values read on 32 bit machines
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 16 Nov 2015 22:25:16 +0000 (17:25 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:11:38 +0000 (13:11 +0000)
commit616072ef0481b9dfcfdb49a76f366fad5e7e311a
tree215edd9ec0954d3ab46a48ce6cb6354ec49da8ed
parentab52e89d1c748f35c9ef0b928ed25dacdf295804
tools lib traceevent: Fix output of %llu for 64 bit values read on 32 bit machines

commit 32abc2ede536aae52978d6c0a8944eb1df14f460 upstream.

When a long value is read on 32 bit machines for 64 bit output, the
parsing needs to change "%lu" into "%llu", as the value is read
natively.

Unfortunately, if "%llu" is already there, the code will add another "l"
to it and fail to parse it properly.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20151116172516.4b79b109@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/lib/traceevent/event-parse.c