diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-04-23 09:37:19 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-23 10:25:03 -0400 |
commit | ac2a509e428462a2ef69f52d26843df0f74568e6 (patch) | |
tree | 0db4a0f7b0c2efdd9b60f732781945a3ccfed4db /drivers/pnp | |
parent | 565b129736c44359518991aa899490926e6e5ec3 (diff) |
pnp: use %*phC to dump small buffers
Instead of pronting buffer byte-by-byte let's use native specificator
to do the job.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/pnpbios/proc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pnp/pnpbios/proc.c b/drivers/pnp/pnpbios/proc.c index 63ddb0173456..1c03ee822e50 100644 --- a/drivers/pnp/pnpbios/proc.c +++ b/drivers/pnp/pnpbios/proc.c | |||
@@ -185,10 +185,9 @@ static int pnp_devices_proc_show(struct seq_file *m, void *v) | |||
185 | 185 | ||
186 | if (pnp_bios_get_dev_node(&nodenum, PNPMODE_DYNAMIC, node)) | 186 | if (pnp_bios_get_dev_node(&nodenum, PNPMODE_DYNAMIC, node)) |
187 | break; | 187 | break; |
188 | seq_printf(m, "%02x\t%08x\t%02x:%02x:%02x\t%04x\n", | 188 | seq_printf(m, "%02x\t%08x\t%3phC\t%04x\n", |
189 | node->handle, node->eisa_id, | 189 | node->handle, node->eisa_id, |
190 | node->type_code[0], node->type_code[1], | 190 | node->type_code, node->flags); |
191 | node->type_code[2], node->flags); | ||
192 | if (nodenum <= thisnodenum) { | 191 | if (nodenum <= thisnodenum) { |
193 | printk(KERN_ERR | 192 | printk(KERN_ERR |
194 | "%s Node number 0x%x is out of sequence following node 0x%x. Aborting.\n", | 193 | "%s Node number 0x%x is out of sequence following node 0x%x. Aborting.\n", |