am 866b1bd5: fastboot: Make the format of "devices -l" match adb\'s

* commit '866b1bd5051db4f22b634df1f8a06bc1c9aa2e26':
  fastboot: Make the format of "devices -l" match adb's
This commit is contained in:
Scott Anderson 2012-06-05 16:21:04 -07:00 committed by Android Git Automerger
commit dd32794a29
1 changed files with 4 additions and 6 deletions

View File

@ -185,15 +185,13 @@ int list_devices_callback(usb_ifc_info *info)
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);
}
}