From 13ce6e1c2fc4549fbb53a9ca5f577166c6e315ac Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 8 Jun 2017 14:35:16 +1000 Subject: dtc: fix sprintf() format string error, again 2a42b14 "dtc: check.c fix compile error" changed a format string using %lx which wasn't correct for all platforms. Unfortunately it changed it to %zx, which is wrong for a different set of platforms (and only right on the others by accident). The parameter we're formatting here is uint64_t, not size_t, so we need to use the PRIx64 macro from to get this right. Signed-off-by: David Gibson --- dtc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dtc.h') diff --git a/dtc.h b/dtc.h index fc24e17..409db76 100644 --- a/dtc.h +++ b/dtc.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include -- cgit v1.1