fiptool: Fix format specifier for malloc/strdup wrappers

Change-Id: Ife8f198b4c45961e85ed6f4d463daa59009dab1c
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
This commit is contained in:
dp-arm 2016-12-21 14:59:30 +00:00
parent fcab6bbe39
commit 9fc9ff1f66
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ static char *xstrdup(const char *s, const char *msg)
d = strdup(s);
if (d == NULL)
log_errx("strdup: ", msg);
log_errx("strdup: %s", msg);
return d;
}
@ -151,7 +151,7 @@ static void *xmalloc(size_t size, const char *msg)
d = malloc(size);
if (d == NULL)
log_errx("malloc: ", msg);
log_errx("malloc: %s", msg);
return d;
}