Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 866b1bd5 authored by Scott Anderson's avatar Scott Anderson
Browse files

fastboot: Make the format of "devices -l" match adb's



Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42
Signed-off-by: default avatarScott Anderson <saa@android.com>
parent 2ca3e6b3
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -181,15 +181,13 @@ int list_devices_callback(usb_ifc_info *info)
        if (!serial[0]) {
            serial = "????????????";
        }
        if (!long_listing) {
        // output compatible with "adb devices"
        if (!long_listing) {
            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);
        }
    }