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

Commit 93c91fad authored by Brian Carlstrom's avatar Brian Carlstrom
Browse files

Improve some adb error logging

Bug: 11290643
Change-Id: Ibad4e9f0b69421cd6017b70a52237e7f27aab848
parent 4d87e743
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -278,7 +278,9 @@ int adb_connect(const char *service)
        return 0;

    fd = _adb_connect(service);
    if(fd == -2) {
    if(fd == -1) {
        fprintf(stderr,"error: %s\n", __adb_error);
    } else if(fd == -2) {
        fprintf(stderr,"** daemon still not running\n");
    }
    D("adb_connect: return fd %d\n", fd);
+1 −1
Original line number Diff line number Diff line
@@ -767,7 +767,7 @@ static int restore(int argc, char** argv) {

    fd = adb_connect("restore:");
    if (fd < 0) {
        fprintf(stderr, "adb: unable to connect for backup\n");
        fprintf(stderr, "adb: unable to connect for restore\n");
        adb_close(tarFd);
        return -1;
    }