Get rid of warnings when compiled with -Wformat-security
Change-Id: I2bfc6582a8198b22af08e4b8d58f532dc138cc02
This commit is contained in:
parent
0253ffdee4
commit
dd26bb3a00
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue