[Bug 1225] New: visual enhancement for dfu-util

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Tue Feb 12 00:37:53 CET 2008


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1225

           Summary: visual enhancement for dfu-util
           Product: OpenMoko
           Version: current svn head
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: dfu-util
        AssignedTo: laforge at openmoko.org
        ReportedBy: onno at gmx.net
                CC: buglog at lists.openmoko.org


No one knows where the dfu-util progress bar ends. The appended patch fixes this.

diff --git a/src/host/dfu-util/src/sam7dfu.c b/src/host/dfu-util/src/sam7dfu.c
index 536b2e1..eff3f48 100644
--- a/src/host/dfu-util/src/sam7dfu.c
+++ b/src/host/dfu-util/src/sam7dfu.c
@@ -108,6 +108,13 @@ int sam7dfu_do_dnload(struct usb_dev_handle *usb_handle,
int interface,
 #if 0
        read(fd, DFU_HDR);
 #endif
+       printf("                   |");
+       {
+           int i;
+           for (i=0; i< PROGRESS_BAR_WIDTH; i++)
+               printf("-");
+           printf("|\n");
+       }
        printf("Starting download: [");
        fflush(stdout);
        while (bytes_sent < st.st_size /* - DFU_HDR */) {



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list