speedtch speedtch.c,1.33,1.34

Duncan Sands duncan at infradead.org
Fri Oct 15 11:57:28 EDT 2004


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv22917

Modified Files:
	speedtch.c 
Log Message:
dbg supplies it's own newline, so no need for \n.
Added a debug message saying we found the firmware.


Index: speedtch.c
===================================================================
RCS file: /home/cvs/speedtch/speedtch.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- speedtch.c	15 Oct 2004 15:30:07 -0000	1.33
+++ speedtch.c	15 Oct 2004 15:57:24 -0000	1.34
@@ -165,8 +165,7 @@
 		goto out;
 	}
 	if ((err = usb_set_interface(instance->u.usb_dev, 1, 1)) < 0) {
-		dbg("speedtch_got_firmware: usb_set_interface returned %d!",
-		    err);
+		dbg("speedtch_got_firmware: usb_set_interface returned %d!", err);
 		instance->u.status = UDSL_NO_FIRMWARE;
 		goto out;
 	}
@@ -572,7 +571,7 @@
 
 	/* Start modem synchronisation */
 	if (speedtch_start_synchro(instance))
-		dbg("speedtch_start_synchro: failed\n");
+		dbg("speedtch_start_synchro: failed");
 
 	speedtch_got_firmware(instance, 1);
 
@@ -599,19 +598,19 @@
 
 	sprintf(buf, "speedtch-%d.bin.%x.%02x", phase, bcdDevice >> 8,
 		bcdDevice & 0xff);
-	dbg("speedtch_find_firmware: looking for %s\n", buf);
+	dbg("speedtch_find_firmware: looking for %s", buf);
 
 	if (!request_firmware(fw_p, buf, &instance->u.usb_dev->dev))
 		return 0;
 
 	sprintf(buf, "speedtch-%d.bin.%x", phase, bcdDevice >> 8);
-	dbg("speedtch_find_firmware: looking for %s\n", buf);
+	dbg("speedtch_find_firmware: looking for %s", buf);
 
 	if (!request_firmware(fw_p, buf, &instance->u.usb_dev->dev))
 		return 0;
 
 	sprintf(buf, "speedtch-%d.bin", phase);
-	dbg("speedtch_find_firmware: looking for %s\n", buf);
+	dbg("speedtch_find_firmware: looking for %s", buf);
 
 	if (!request_firmware(fw_p, buf, &instance->u.usb_dev->dev))
 		return 0;
@@ -630,7 +629,9 @@
 	daemonize("firmware/speedtch");
 
 	if (!speedtch_find_firmware(instance, 1, &fw1)) {
+		dbg("speedtch_load_firmware: found stage 1 firmware");
 		if (!speedtch_find_firmware(instance, 2, &fw2)) {
+			dbg("speedtch_load_firmware: found stage 2 firmware");
 			speedtch_upload_firmware(instance, fw1, fw2);
 			release_firmware(fw2);
 		}




More information about the Usbatm-commits mailing list