fastboot: Make the format of "devices -l" match adb's
Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42 Signed-off-by: Scott Anderson <saa@android.com>
This commit is contained in:
parent
2ca3e6b35f
commit
866b1bd505
1 changed files with 4 additions and 6 deletions
|
|
@ -181,15 +181,13 @@ int list_devices_callback(usb_ifc_info *info)
|
||||||
if (!serial[0]) {
|
if (!serial[0]) {
|
||||||
serial = "????????????";
|
serial = "????????????";
|
||||||
}
|
}
|
||||||
|
// output compatible with "adb devices"
|
||||||
if (!long_listing) {
|
if (!long_listing) {
|
||||||
// output compatible with "adb devices"
|
|
||||||
printf("%s\tfastboot\n", serial);
|
printf("%s\tfastboot\n", serial);
|
||||||
|
} else if (!info->device_path) {
|
||||||
|
printf("%-22s fastboot\n", serial);
|
||||||
} else {
|
} else {
|
||||||
char* device_path = info->device_path;
|
printf("%-22s fastboot %s\n", serial, info->device_path);
|
||||||
if (!device_path[0]) {
|
|
||||||
device_path = "????????????";
|
|
||||||
}
|
|
||||||
printf("%s\t%s\tfastboot\n", serial, device_path);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue