fastboot: Make the format of "devices -l" match adb's
Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42
Signed-off-by: Scott Anderson <saa@android.com>
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index f1b675f..6e42436 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -181,15 +181,13 @@
if (!serial[0]) {
serial = "????????????";
}
+ // output compatible with "adb devices"
if (!long_listing) {
- // output compatible with "adb devices"
printf("%s\tfastboot\n", serial);
+ } else if (!info->device_path) {
+ printf("%-22s fastboot\n", serial);
} else {
- char* device_path = info->device_path;
- if (!device_path[0]) {
- device_path = "????????????";
- }
- printf("%s\t%s\tfastboot\n", serial, device_path);
+ printf("%-22s fastboot %s\n", serial, info->device_path);
}
}