perf/x86/p4: Add format attributes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 27 Mar 2012 14:50:42 +0000 (16:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Apr 2012 06:33:38 +0000 (08:33 +0200)
commit7b8e6da46b921d30ac1553cac56d8fb74f0b431d
treec1dde602088af9d02dc10d8d8bed94dcb3a706bb
parent6308191f6f55d3629c7dbe72dfb856ad9fa560fd
perf/x86/p4: Add format attributes

Steven reported his P4 not booting properly, the missing format
attributes cause a NULL ptr deref. Cure this by adding the
missing format specification.

I took the format description out of the comment near
p4_config_pack*() and hope that comment is still relatively
accurate.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Tested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1332859842.16159.227.camel@twins
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_p4.c