From 866b1bd5051db4f22b634df1f8a06bc1c9aa2e26 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 4 Jun 2012 20:29:11 -0700 Subject: fastboot: Make the format of "devices -l" match adb's Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42 Signed-off-by: Scott Anderson --- fastboot/fastboot.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index f1b675f4..6e42436a 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -181,15 +181,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); } } -- cgit v1.2.3