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:
parent
7eb73ef993
commit
79244b2a3b
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue