Fix string literal compiler error

Change-Id: Id83e70332688077ec0f6fdbff6d982d795730e9b
This commit is contained in:
Ajay Dudani
2010-12-18 18:52:20 -08:00
parent ae27f82145
commit 7e46ea01e8

View File

@@ -35,7 +35,7 @@
int rc; \ int rc; \
rc = snprintf(resp, sizeof(resp), "failure %s:%s",msg, code); \ rc = snprintf(resp, sizeof(resp), "failure %s:%s",msg, code); \
if ( rc == sizeof(resp)) resp[sizeof(resp)-1] = 0; \ if ( rc == sizeof(resp)) resp[sizeof(resp)-1] = 0; \
LOGE(resp); \ LOGE("%s", resp); \
} }
static struct sockaddr_nl rtnl_local; static struct sockaddr_nl rtnl_local;