r1574 - trunk/src/host/dfu-util/src

laforge at sita.openmoko.org laforge at sita.openmoko.org
Fri Mar 30 21:21:03 CEST 2007


Author: laforge
Date: 2007-03-30 21:21:03 +0200 (Fri, 30 Mar 2007)
New Revision: 1574

Modified:
   trunk/src/host/dfu-util/src/main.c
Log:
* print which configuration is set
* fix typo (Closes: #335)


Modified: trunk/src/host/dfu-util/src/main.c
===================================================================
--- trunk/src/host/dfu-util/src/main.c	2007-03-30 19:20:23 UTC (rev 1573)
+++ trunk/src/host/dfu-util/src/main.c	2007-03-30 19:21:03 UTC (rev 1574)
@@ -575,7 +575,7 @@
 	}
 
 #if 0
-	printf("Setting Configuration...\n");
+	printf("Setting Configuration %u...\n", dif->configuration);
 	if (usb_set_configuration(dif->dev_handle, dif->configuration) < 0) {
 		fprintf(stderr, "Cannot set configuration: %s\n", usb_strerror());
 		exit(1);
@@ -680,7 +680,7 @@
 		if (dfu_detach(dif->dev_handle, dif->interface, 1000) < 0) {
 			fprintf(stderr, "can't detach: %s\n", usb_strerror());
 		}
-		printf("Resetting USB to swithc back to runtime mode\n");
+		printf("Resetting USB to switch back to runtime mode\n");
 		ret = usb_reset(dif->dev_handle);
 		if (ret < 0 && ret != -ENODEV) {
 			fprintf(stderr, "error resetting after download: %s\n", 





More information about the commitlog mailing list