diff options
author | Nick Kralevich <nnk@google.com> | 2010-05-13 15:38:49 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2010-05-13 15:38:49 -0700 |
commit | dd26bb3a00b95dc8448d2d35bcee52c8e1880096 (patch) | |
tree | 20dd7f0632254d0f944ac45b4ceb0e68e9c9106c /logwrapper | |
parent | 0253ffdee4c6ef3652219b1ce07f9db366ca10fa (diff) | |
download | system_core-dd26bb3a00b95dc8448d2d35bcee52c8e1880096.zip system_core-dd26bb3a00b95dc8448d2d35bcee52c8e1880096.tar.gz system_core-dd26bb3a00b95dc8448d2d35bcee52c8e1880096.tar.bz2 |
Get rid of warnings when compiled with -Wformat-security
Change-Id: I2bfc6582a8198b22af08e4b8d58f532dc138cc02
Diffstat (limited to 'logwrapper')
-rw-r--r-- | logwrapper/logwrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |