commit | dd26bb3a00b95dc8448d2d35bcee52c8e1880096 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Thu May 13 15:38:49 2010 -0700 |
committer | Nick Kralevich <nnk@google.com> | Thu May 13 15:38:49 2010 -0700 |
tree | 20dd7f0632254d0f944ac45b4ceb0e68e9c9106c | |
parent | 0253ffdee4c6ef3652219b1ce07f9db366ca10fa [diff] [blame] |
Get rid of warnings when compiled with -Wformat-security Change-Id: I2bfc6582a8198b22af08e4b8d58f532dc138cc02
diff --git a/logwrapper/logwrapper.c b/logwrapper/logwrapper.c index 6466795..bdf53e8 100644 --- a/logwrapper/logwrapper.c +++ b/logwrapper/logwrapper.c
@@ -27,8 +27,8 @@ #include "cutils/log.h" void fatal(const char *msg) { - fprintf(stderr, msg); - LOG(LOG_ERROR, "logwrapper", msg); + fprintf(stderr, "%s", msg); + LOG(LOG_ERROR, "logwrapper", "%s", msg); exit(-1); }