summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-08-19 17:49:45 -0700
committerElliott Hughes <enh@google.com>2015-08-19 17:49:45 -0700
commitb46964f3c9f5389dc9d000dcc5e740a3833d3a81 (patch)
treeffdb0b9cc250e90b113674a33a4cafe9a560caa7 /fastboot
parente728eb9150f38fc5c6f8324ef785a152344973a8 (diff)
downloadcore-b46964f3c9f5389dc9d000dcc5e740a3833d3a81.tar.gz
core-b46964f3c9f5389dc9d000dcc5e740a3833d3a81.tar.bz2
core-b46964f3c9f5389dc9d000dcc5e740a3833d3a81.zip
fastboot should say which device it's waiting for.
Change-Id: Ia8a04b2727983cb05a9a3e85d9a9586b15c71600
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 5d7b1511a..4dbf32f4b 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -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) {
// 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;
}
@@ -246,7 +246,7 @@ usb_handle *open_device(void)
if(usb) return usb;
if(announce) {
announce = 0;
- fprintf(stderr,"< waiting for device >\n");
+ fprintf(stderr, "< waiting for %s >\n", serial ? serial : "any device");
}
usleep(1000);
}