diff options
author | San Mehat <san@google.com> | 2009-06-25 13:33:23 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-06-25 13:33:23 -0700 |
commit | 1537d4805ef98a385c61c659f0e778b7074bbbfe (patch) | |
tree | 815c1132dc242c47a7c201d22a44a68d11f0df6f /vold | |
parent | e7f444f32986f975b788ecf3962cb2cce27828e8 (diff) | |
download | system_core-1537d4805ef98a385c61c659f0e778b7074bbbfe.zip system_core-1537d4805ef98a385c61c659f0e778b7074bbbfe.tar.gz system_core-1537d4805ef98a385c61c659f0e778b7074bbbfe.tar.bz2 |
vold: Fix bug where logwrapper would pass data to LOG() in the format field,
which caused vsprintf to process format characters in the string.
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'vold')
-rw-r--r-- | vold/logwrapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vold/logwrapper.c b/vold/logwrapper.c index 46f6ed3..8da4892 100644 --- a/vold/logwrapper.c +++ b/vold/logwrapper.c @@ -42,7 +42,8 @@ int parent(const char *tag, int parent_read) { buffer[b] = '\0'; } else if (buffer[b] == '\n') { buffer[b] = '\0'; - LOG(LOG_INFO, tag, &buffer[a]); + + LOG(LOG_INFO, tag, "%s", &buffer[a]); a = b + 1; } } |