aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-02-27 10:38:38 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-02-28 10:04:20 +1100
commitf72508e2b6ca16016862b937ca1584b282fa637c (patch)
tree8fb75c5ecbeeff40fb61747a8d4c3ff8a739b9fa /util.h
parent397d5ef0203ce4fa59dae5142645d364412dc962 (diff)
downloaddtc-f72508e2b6ca16016862b937ca1584b282fa637c.zip
dtc-f72508e2b6ca16016862b937ca1584b282fa637c.tar.gz
dtc-f72508e2b6ca16016862b937ca1584b282fa637c.tar.bz2
Correct some broken printf() like format mismatches
Fix two places where a printf()-style format string does not match the arguments passed. Reported-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index f5c4f1b..35b2bda 100644
--- a/util.h
+++ b/util.h
@@ -53,7 +53,7 @@ static inline void *xrealloc(void *p, size_t len)
void *new = realloc(p, len);
if (!new)
- die("realloc() failed (len=%d)\n", len);
+ die("realloc() failed (len=%zd)\n", len);
return new;
}