r1116 - trunk/src/host/dfu-util/src

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sun Feb 25 16:43:38 CET 2007


Author: laforge
Date: 2007-02-25 16:43:38 +0100 (Sun, 25 Feb 2007)
New Revision: 1116

Modified:
   trunk/src/host/dfu-util/src/main.c
Log:
* print non-OK DFU STATUS
* fix error message (copy+paste mistake)


Modified: trunk/src/host/dfu-util/src/main.c
===================================================================
--- trunk/src/host/dfu-util/src/main.c	2007-02-25 15:43:05 UTC (rev 1115)
+++ trunk/src/host/dfu-util/src/main.c	2007-02-25 15:43:38 UTC (rev 1116)
@@ -578,8 +578,8 @@
 		ret = usb_get_descriptor(dif->dev_handle, 0x21, dif->interface,
 					 &func_dfu, sizeof(func_dfu));
 		if (ret < 0) {
-			fprintf(stderr, "error clear_status: %s\n",
-				usb_strerror());
+			fprintf(stderr, "Error obtaining DFU functional "
+				"descriptor: %s\n", usb_strerror());
 			exit(1);
 		}
 		/* FIXME: Endian! */
@@ -593,6 +593,8 @@
 	}
 	
 	if (DFU_STATUS_OK != status.bStatus ) {
+		printf("WARNING: DFU Status: '%s'\n",
+			dfu_status_to_string(status.bStatus));
 		/* Clear our status & try again. */
 		dfu_clear_status(dif->dev_handle, dif->interface);
 		dfu_get_status(dif->dev_handle, dif->interface, &status);





More information about the commitlog mailing list