diff options
| author | Nick Kralevich <nnk@google.com> | 2010-05-14 10:37:37 -0700 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2010-05-14 10:37:37 -0700 |
| commit | f69b3b9af78c94b5ce56a73e086b22b585ea5c85 (patch) | |
| tree | 2e305664d5774ab68453dcb85e656fbdc4bb1e44 /logwrapper.c | |
| parent | 1a06edaf4db4e9c520624bcc06e0e13ee470d90e (diff) | |
| download | android_system_vold-f69b3b9af78c94b5ce56a73e086b22b585ea5c85.tar.gz android_system_vold-f69b3b9af78c94b5ce56a73e086b22b585ea5c85.tar.bz2 android_system_vold-f69b3b9af78c94b5ce56a73e086b22b585ea5c85.zip | |
Get rid of warnings when compiled with -Wformat-security
Change-Id: I27e0819aba347e26051ad771c594b69700da1721
Diffstat (limited to 'logwrapper.c')
| -rw-r--r-- | logwrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logwrapper.c b/logwrapper.c index afc6cdb..4862efb 100644 --- a/logwrapper.c +++ b/logwrapper.c @@ -51,7 +51,7 @@ int parent(const char *tag, int parent_read) { if (a == 0 && b == sizeof(buffer) - 1) { // buffer is full, flush buffer[b] = '\0'; - LOG(LOG_INFO, tag, &buffer[a]); + LOG(LOG_INFO, tag, "%s", &buffer[a]); b = 0; } else if (a != b) { // Keep left-overs @@ -67,7 +67,7 @@ int parent(const char *tag, int parent_read) { // Flush remaining data if (a != b) { buffer[b] = '\0'; - LOG(LOG_INFO, tag, &buffer[a]); + LOG(LOG_INFO, tag, "%s", &buffer[a]); } status = 0xAAAA; if (wait(&status) != -1) { // Wait for child |
