Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1639)

Unified Diff: src/tcs/log.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/tcs/Makefile.am ('k') | src/tcs/ps/ps_utils.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tcs/log.c
diff --git a/src/tcs/log.c b/src/tcs/log.c
index 8576cbde667624b27e1abc61373f3a24ace2b789..8f3d0b4de8c0ce0c58b92250f00c5b2a9022fa2b 100644
--- a/src/tcs/log.c
+++ b/src/tcs/log.c
@@ -45,7 +45,7 @@ LogBlobData(char *szDescriptor, unsigned long sizeOfBlob, unsigned char *blob)
if (getenv("TCSD_FOREGROUND") != NULL)
fprintf(stdout, "%s %s\n", szDescriptor, temp);
else
- syslog(LOG_DEBUG, temp);
+ syslog(LOG_DEBUG, "%s", temp);
memset(temp, 0, sizeof(temp));
}
snprintf(&temp[(i%16)*3], 4, "%.2X ", blob[i]);
@@ -55,7 +55,7 @@ LogBlobData(char *szDescriptor, unsigned long sizeOfBlob, unsigned char *blob)
if (getenv("TCSD_FOREGROUND") != NULL)
fprintf(stdout, "%s %s\n", szDescriptor, temp);
else
- syslog(LOG_DEBUG, temp);
+ syslog(LOG_DEBUG, "%s", temp);
}
}
« no previous file with comments | « src/tcs/Makefile.am ('k') | src/tcs/ps/ps_utils.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698