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

Commit dd32794a authored by Scott Anderson's avatar Scott Anderson Committed by Android Git Automerger
Browse files

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

* commit '866b1bd5':
  fastboot: Make the format of "devices -l" match adb's
parents 0e9e13eb 866b1bd5
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -185,15 +185,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);
        }
    }