Commit 9fc9ff1f authored by dp-arm's avatar dp-arm
Browse files

fiptool: Fix format specifier for malloc/strdup wrappers



Change-Id: Ife8f198b4c45961e85ed6f4d463daa59009dab1c
Signed-off-by: default avatardp-arm <dimitris.papastamos@arm.com>
parent fcab6bbe
...@@ -141,7 +141,7 @@ static char *xstrdup(const char *s, const char *msg) ...@@ -141,7 +141,7 @@ static char *xstrdup(const char *s, const char *msg)
d = strdup(s); d = strdup(s);
if (d == NULL) if (d == NULL)
log_errx("strdup: ", msg); log_errx("strdup: %s", msg);
return d; return d;
} }
...@@ -151,7 +151,7 @@ static void *xmalloc(size_t size, const char *msg) ...@@ -151,7 +151,7 @@ static void *xmalloc(size_t size, const char *msg)
d = malloc(size); d = malloc(size);
if (d == NULL) if (d == NULL)
log_errx("malloc: ", msg); log_errx("malloc: %s", msg);
return d; return d;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment