am 866b1bd5: fastboot: Make the format of "devices -l" match adb\'s
* commit '866b1bd5051db4f22b634df1f8a06bc1c9aa2e26':
fastboot: Make the format of "devices -l" match adb's
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 5858e23..c44f937 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -185,15 +185,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);
}
}