1
0
Fork 0
forked from len0rd/rockbox

Give more verbose error message when uploading e200rpatcher fails.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14673 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-09-12 00:03:17 +00:00
parent 7eb73ef993
commit 79244b2a3b

View file

@ -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;
}