patch-2.3.43 linux/drivers/parport/probe.c

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

diff -u --recursive --new-file v2.3.42/linux/drivers/parport/probe.c linux/drivers/parport/probe.c
@@ -164,8 +164,9 @@
 		retval = parport_read (dev->port, buffer, len);
 
 		if (retval != len)
-			printk (KERN_DEBUG "%s: only read %d of %d ID bytes\n",
-				dev->port->name, retval, len);
+			printk (KERN_DEBUG "%s: only read %Zd of %Zd ID bytes\n",
+				dev->port->name, retval,
+				len);
 
 		/* Some printer manufacturers mistakenly believe that
                    the length field is supposed to be _exclusive_. */
@@ -179,7 +180,7 @@
 			if (diff)
 				printk (KERN_DEBUG
 					"%s: device reported incorrect "
-					"length field (%d, should be %d)\n",
+					"length field (%d, should be %Zd)\n",
 					dev->port->name, idlen, retval);
 			else {
 				/* One semi-colon short of a device ID. */

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