diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2017-02-27 10:38:38 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-02-28 10:04:20 +1100 |
commit | f72508e2b6ca16016862b937ca1584b282fa637c (patch) | |
tree | 8fb75c5ecbeeff40fb61747a8d4c3ff8a739b9fa | |
parent | 397d5ef0203ce4fa59dae5142645d364412dc962 (diff) | |
download | device-tree-compiler-f72508e2b6ca16016862b937ca1584b282fa637c.tar.gz |
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>
-rw-r--r-- | dtc.c | 2 | ||||
-rw-r--r-- | util.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -216,7 +216,7 @@ int main(int argc, char *argv[]) alignsize = strtol(optarg, NULL, 0); if (!is_power_of_2(alignsize)) die("Invalid argument \"%d\" to -a option\n", - optarg); + alignsize); break; case 'f': force = true; @@ -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; } |