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

Commit 234910bc authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Add quotes to -v INFO/OKAY/FAIL for clarity.

This makes it easier to see which part came from the device.

Bug: N/A
Test: fastboot -v flashall
Change-Id: Ie6f4b02933cab21f343998b5fc84f8e487dd3984
parent 42b18a51
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -75,13 +75,13 @@ static int64_t check_response(Transport* transport, uint32_t size, char* respons
        }

        if (!memcmp(status, "INFO", 4)) {
            verbose("received INFO %s", status + 4);
            verbose("received INFO \"%s\"", status + 4);
            fprintf(stderr, "(bootloader) %s\n", status + 4);
            continue;
        }

        if (!memcmp(status, "OKAY", 4)) {
            verbose("received OKAY %s", status + 4);
            verbose("received OKAY \"%s\"", status + 4);
            if (response) {
                strcpy(response, status + 4);
            }
@@ -89,7 +89,7 @@ static int64_t check_response(Transport* transport, uint32_t size, char* respons
        }

        if (!memcmp(status, "FAIL", 4)) {
            verbose("received FAIL %s", status + 4);
            verbose("received FAIL \"%s\"", status + 4);
            if (r > 4) {
                g_error = android::base::StringPrintf("remote: %s", status + 4);
            } else {