am 1537d480: vold: Fix bug where logwrapper would pass data to LOG() in the format field, which caused vsprintf to process format characters in the string.

Merge commit '1537d4805ef98a385c61c659f0e778b7074bbbfe'

* commit '1537d4805ef98a385c61c659f0e778b7074bbbfe':
  vold: Fix bug where logwrapper would pass data to LOG() in the format field,
This commit is contained in:
San Mehat 2009-06-25 14:34:00 -07:00 committed by The Android Open Source Project
commit 156f9c5e6b
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}