diff options
| author | Barry Wardell <rockbox@barrywardell.net> | 2007-09-12 00:03:17 +0000 |
|---|---|---|
| committer | Barry Wardell <rockbox@barrywardell.net> | 2007-09-12 00:03:17 +0000 |
| commit | 79244b2a3be6b1cf60574c6ef9bdcb4a08e516d2 (patch) | |
| tree | 307d75f78e92ee6da7d54f3bd2e1139172a7968e | |
| parent | 7eb73ef993b1b6c50d739ee2db23dcf1569cb651 (diff) | |
| download | rockbox-79244b2a3be6b1cf60574c6ef9bdcb4a08e516d2.zip rockbox-79244b2a3be6b1cf60574c6ef9bdcb4a08e516d2.tar.gz rockbox-79244b2a3be6b1cf60574c6ef9bdcb4a08e516d2.tar.bz2 rockbox-79244b2a3be6b1cf60574c6ef9bdcb4a08e516d2.tar.xz | |
Give more verbose error message when uploading e200rpatcher fails.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14673 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/e200rpatcher/e200rpatcher.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/e200rpatcher/e200rpatcher.c b/rbutil/e200rpatcher/e200rpatcher.c index 55188f4..23828ac 100644 --- a/rbutil/e200rpatcher/e200rpatcher.c +++ b/rbutil/e200rpatcher/e200rpatcher.c @@ -27,6 +27,7 @@ #include <stdio.h> #include <inttypes.h> #include <usb.h> +#include <string.h> #include "bootimg.h" @@ -69,6 +70,7 @@ int upload_app(usb_dev_handle* dh) if (err < 0) { fprintf(stderr,"[ERR] Error writing data length\n"); + fprintf(stderr,"[ERR] Bulk write error (%d, %s)\n", err, strerror(-err)); return -1; } @@ -83,6 +85,7 @@ int upload_app(usb_dev_handle* dh) if (err < 0) { fprintf(stderr,"[ERR] Error writing data\n"); + fprintf(stderr,"[ERR] Bulk write error (%d, %s)\n", err, strerror(-err)); return -1; } |