patch-2.3.16 linux/drivers/pci/names.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/pci/devlist.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/drivers/pci/names.c linux/drivers/pci/names.c
@@ -79,12 +79,12 @@
 		}
 
 		/* Ok, found the vendor, but unknown device */
-		sprintf(name, " PCI device %04x:%04x (%s)", dev->vendor, dev->device, vendor_p->name);
+		sprintf(name, "PCI device %04x:%04x (%s)", dev->vendor, dev->device, vendor_p->name);
 		return;
 
 		/* Full match */
 		match_device: {
-			char *n = name + sprintf(name, " %s %s", vendor_p->name, device_p->name);
+			char *n = name + sprintf(name, "%s %s", vendor_p->name, device_p->name);
 			int nr = device_p->seen + 1;
 			device_p->seen = nr;
 			if (nr > 1)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)