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

Commit 79290ae9 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Get rid of warnings when compiled with -Wformat-security

Change-Id: I5a7ad5be2aaf0fa0d164204d3c1bebf02ec55745
parent 8b518577
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ again:
    // never receive non-ASCII UTF-8).
    // This was added because of the BMW 2005 E46 which sends binary junk.
    if (is_ascii(buf)) {
        LOG(LOG_INFO, "Bluetooth AT recv", buf);
        LOG(LOG_INFO, "Bluetooth AT recv", "%s", buf);
    } else {
        LOGW("Ignoring invalid AT command: %s", buf);
        buf[0] = NULL;
@@ -494,7 +494,7 @@ static void pretty_log_urc(const char *urc) {
            }
        }
    }
    LOG(LOG_INFO, "Bluetooth AT sent", buf);
    LOG(LOG_INFO, "Bluetooth AT sent", "%s", buf);

    free(buf);
}