diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-06-30 01:16:18 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-06-30 01:16:18 -0400 |
commit | 9b0470200a2441766599ad84f92ab9daca8ed86d (patch) | |
tree | a1863cb975d91adc16332c9e2d528767181d3b96 /arch/ppc64/kernel/ItLpQueue.c | |
parent | ed094150bdeb6eca691f1b7a05bd34d4d1a95488 (diff) |
[PATCH] ppc64: Cleanup proc printing of event types
The code that prints event counts by type uses a hand-coded number of tabs
to get the alignment right. Instead use a printf alignment which will allow
allow us to use the event_type strings elsewhere in the future.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/ItLpQueue.c')
-rw-r--r-- | arch/ppc64/kernel/ItLpQueue.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/ppc64/kernel/ItLpQueue.c b/arch/ppc64/kernel/ItLpQueue.c index 4a6ab9de629d..83fb36a9bc09 100644 --- a/arch/ppc64/kernel/ItLpQueue.c +++ b/arch/ppc64/kernel/ItLpQueue.c | |||
@@ -31,15 +31,15 @@ struct hvlpevent_queue hvlpevent_queue __attribute__((__section__(".data"))); | |||
31 | DEFINE_PER_CPU(unsigned long[HvLpEvent_Type_NumTypes], hvlpevent_counts); | 31 | DEFINE_PER_CPU(unsigned long[HvLpEvent_Type_NumTypes], hvlpevent_counts); |
32 | 32 | ||
33 | static char *event_types[HvLpEvent_Type_NumTypes] = { | 33 | static char *event_types[HvLpEvent_Type_NumTypes] = { |
34 | "Hypervisor\t\t", | 34 | "Hypervisor", |
35 | "Machine Facilities\t", | 35 | "Machine Facilities", |
36 | "Session Manager\t", | 36 | "Session Manager", |
37 | "SPD I/O\t\t", | 37 | "SPD I/O", |
38 | "Virtual Bus\t\t", | 38 | "Virtual Bus", |
39 | "PCI I/O\t\t", | 39 | "PCI I/O", |
40 | "RIO I/O\t\t", | 40 | "RIO I/O", |
41 | "Virtual Lan\t\t", | 41 | "Virtual Lan", |
42 | "Virtual I/O\t\t" | 42 | "Virtual I/O" |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static __inline__ int set_inUse(void) | 45 | static __inline__ int set_inUse(void) |
@@ -248,7 +248,7 @@ static int proc_lpevents_show(struct seq_file *m, void *v) | |||
248 | sum += per_cpu(hvlpevent_counts, cpu)[i]; | 248 | sum += per_cpu(hvlpevent_counts, cpu)[i]; |
249 | } | 249 | } |
250 | 250 | ||
251 | seq_printf(m, " %s %10lu\n", event_types[i], sum); | 251 | seq_printf(m, " %-20s %10lu\n", event_types[i], sum); |
252 | } | 252 | } |
253 | 253 | ||
254 | seq_printf(m, "\n events processed by processor:\n"); | 254 | seq_printf(m, "\n events processed by processor:\n"); |