Skip to content

Commit

Permalink
pnp: use %*phC to dump small buffers
Browse files Browse the repository at this point in the history
Instead of pronting buffer byte-by-byte let's use native specificator
to do the job.

Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
andy-shev authored and rafaeljw committed Apr 23, 2013
1 parent 565b129 commit ac2a509
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pnp/pnpbios/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ static int pnp_devices_proc_show(struct seq_file *m, void *v)

if (pnp_bios_get_dev_node(&nodenum, PNPMODE_DYNAMIC, node))
break;
seq_printf(m, "%02x\t%08x\t%02x:%02x:%02x\t%04x\n",
seq_printf(m, "%02x\t%08x\t%3phC\t%04x\n",
node->handle, node->eisa_id,
node->type_code[0], node->type_code[1],
node->type_code[2], node->flags);
node->type_code, node->flags);
if (nodenum <= thisnodenum) {
printk(KERN_ERR
"%s Node number 0x%x is out of sequence following node 0x%x. Aborting.\n",
Expand Down

0 comments on commit ac2a509

Please sign in to comment.