Merge "fastboot should say which device it's waiting for."
This commit is contained in:
commit
e03d0322db
1 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ static void *load_file(const char *fn, unsigned *_sz)
|
||||||
|
|
||||||
int match_fastboot_with_serial(usb_ifc_info* info, const char* local_serial) {
|
int match_fastboot_with_serial(usb_ifc_info* info, const char* local_serial) {
|
||||||
// Require a matching vendor id if the user specified one with -i.
|
// Require a matching vendor id if the user specified one with -i.
|
||||||
if (vendor_id != 0 && info->dev_vendor != vendor_id) {
|
if (vendor_id != 0 && info->dev_vendor != vendor_id) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -246,7 +246,7 @@ usb_handle *open_device(void)
|
||||||
if(usb) return usb;
|
if(usb) return usb;
|
||||||
if(announce) {
|
if(announce) {
|
||||||
announce = 0;
|
announce = 0;
|
||||||
fprintf(stderr,"< waiting for device >\n");
|
fprintf(stderr, "< waiting for %s >\n", serial ? serial : "any device");
|
||||||
}
|
}
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue