[Crosstoolchain-logs] [device-tree-compiler] 30/58: Correct some broken printf() like format mismatches

Vagrant Cascadian vagrant at moszumanska.debian.org
Mon Sep 25 16:23:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

vagrant pushed a commit to branch debian/master
in repository device-tree-compiler.

commit f72508e2b6ca16016862b937ca1584b282fa637c
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Mon Feb 27 10:38:38 2017 +1100

    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 at m4x.org>
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 dtc.c  | 2 +-
 util.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dtc.c b/dtc.c
index 9c30c33..bb1e52b 100644
--- a/dtc.c
+++ b/dtc.c
@@ -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;
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;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list