commit | 7dd89402ed30dbce870db6f6100ebe5d0958cb34 | [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 | 8a2fe71ab9d06b331dff321340cf0b8d2d209a67 | |
parent | 689a12be0456018ae1f84bba201ae5c928beb044 [diff] |
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); }