aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-05-29 06:05:18 -0400
committerTony Luck <tony.luck@intel.com>2013-06-03 19:03:17 -0400
commit7451adc51661ac75d4b4c56056451a58cccf1967 (patch)
tree54548dfbc64fd5ef1f4d7ad05acdd8d653c53f5d /arch/ia64/kernel
parent169ec523c34212f6e382186bce88f17eba4cad49 (diff)
[IA64] perfmon: Use %*phD specifier to dump small buffers
pfm_uuid_t value is defined as unsigned char [16]. Thus, we may dump its value as byte buffer using %*phD specifier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r--arch/ia64/kernel/perfmon.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index 9ea25fce06d5..5a9ff1c3c3e9 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -5647,24 +5647,8 @@ pfm_proc_show_header(struct seq_file *m)
5647 5647
5648 list_for_each(pos, &pfm_buffer_fmt_list) { 5648 list_for_each(pos, &pfm_buffer_fmt_list) {
5649 entry = list_entry(pos, pfm_buffer_fmt_t, fmt_list); 5649 entry = list_entry(pos, pfm_buffer_fmt_t, fmt_list);
5650 seq_printf(m, "format : %02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x %s\n", 5650 seq_printf(m, "format : %16phD %s\n",
5651 entry->fmt_uuid[0], 5651 entry->fmt_uuid, entry->fmt_name);
5652 entry->fmt_uuid[1],
5653 entry->fmt_uuid[2],
5654 entry->fmt_uuid[3],
5655 entry->fmt_uuid[4],
5656 entry->fmt_uuid[5],
5657 entry->fmt_uuid[6],
5658 entry->fmt_uuid[7],
5659 entry->fmt_uuid[8],
5660 entry->fmt_uuid[9],
5661 entry->fmt_uuid[10],
5662 entry->fmt_uuid[11],
5663 entry->fmt_uuid[12],
5664 entry->fmt_uuid[13],
5665 entry->fmt_uuid[14],
5666 entry->fmt_uuid[15],
5667 entry->fmt_name);
5668 } 5652 }
5669 spin_unlock(&pfm_buffer_fmt_lock); 5653 spin_unlock(&pfm_buffer_fmt_lock);
5670 5654