aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-27 19:54:41 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-27 19:54:41 -0400
commitae6208301e1e37a203fab817b59279a0f5d774c6 (patch)
tree4d00fbf654cb77d37212185f58101b5b6007e73d /drivers/pnp
parent355c63e5ac963af0ac95e72b74693cfe2527a76b (diff)
parentac2a509e428462a2ef69f52d26843df0f74568e6 (diff)
Merge branch 'pnp'
* pnp: pnp: use %*phC to dump small buffers isapnp: remove debug leftovers
Diffstat (limited to 'drivers/pnp')
-rw-r--r--drivers/pnp/isapnp/core.c11
-rw-r--r--drivers/pnp/pnpbios/proc.c5
2 files changed, 2 insertions, 14 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c
index 918d5f044865..cf88f9b62445 100644
--- a/drivers/pnp/isapnp/core.c
+++ b/drivers/pnp/isapnp/core.c
@@ -379,10 +379,6 @@ static int __init isapnp_read_tag(unsigned char *type, unsigned short *size)
379 *type = (tag >> 3) & 0x0f; 379 *type = (tag >> 3) & 0x0f;
380 *size = tag & 0x07; 380 *size = tag & 0x07;
381 } 381 }
382#if 0
383 printk(KERN_DEBUG "tag = 0x%x, type = 0x%x, size = %i\n", tag, *type,
384 *size);
385#endif
386 if (*type == 0xff && *size == 0xffff) /* probably invalid data */ 382 if (*type == 0xff && *size == 0xffff) /* probably invalid data */
387 return -1; 383 return -1;
388 return 0; 384 return 0;
@@ -813,13 +809,6 @@ static int __init isapnp_build_device_list(void)
813 if (!card) 809 if (!card)
814 continue; 810 continue;
815 811
816#if 0
817 dev_info(&card->dev,
818 "vendor: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n",
819 header[0], header[1], header[2], header[3], header[4],
820 header[5], header[6], header[7], header[8]);
821 dev_info(&card->dev, "checksum = %#x\n", checksum);
822#endif
823 INIT_LIST_HEAD(&card->devices); 812 INIT_LIST_HEAD(&card->devices);
824 card->serial = 813 card->serial =
825 (header[7] << 24) | (header[6] << 16) | (header[5] << 8) | 814 (header[7] << 24) | (header[6] << 16) | (header[5] << 8) |
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",