Peter Robinson cda652
--- dtc-1.4.2/fdtdump.c.orig	2016-09-03 12:02:30.000000000 +0100
Peter Robinson cda652
+++ dtc-1.4.2/fdtdump.c	2016-09-11 11:58:07.656497902 +0100
Peter Robinson cda652
@@ -97,7 +97,7 @@
Josh Boyer f3da2d
 	p = p_struct;
Josh Boyer f3da2d
 	while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
Josh Boyer f3da2d
 
Josh Boyer f3da2d
-		dumpf("%04zx: tag: 0x%08x (%s)\n",
Josh Boyer f3da2d
+		dumpf("%04tx: tag: 0x%08x (%s)\n",
Josh Boyer f3da2d
 		        (uintptr_t)p - blob_off - 4, tag, tagname(tag));
Josh Boyer f3da2d
 
Josh Boyer f3da2d
 		if (tag == FDT_BEGIN_NODE) {
Peter Robinson cda652
@@ -137,8 +137,8 @@
Josh Boyer f3da2d
 
Josh Boyer f3da2d
 		p = PALIGN(p + sz, 4);
Josh Boyer f3da2d
 
Josh Boyer f3da2d
-		dumpf("%04zx: string: %s\n", (uintptr_t)s - blob_off, s);
Josh Boyer f3da2d
-		dumpf("%04zx: value\n", (uintptr_t)t - blob_off);
Josh Boyer f3da2d
+		dumpf("%04tx: string: %s\n", (uintptr_t)s - blob_off, s);
Josh Boyer f3da2d
+		dumpf("%04tx: value\n", (uintptr_t)t - blob_off);
Josh Boyer f3da2d
 		printf("%*s%s", depth * shift, "", s);
Josh Boyer f3da2d
 		utilfdt_print_data(t, sz);
Josh Boyer f3da2d
 		printf(";\n");
Peter Robinson cda652
@@ -212,14 +212,14 @@
Josh Boyer f3da2d
 					fdt_off_dt_strings(p) < this_len)
Josh Boyer f3da2d
 					break;
Josh Boyer f3da2d
 				if (debug)
Josh Boyer f3da2d
-					printf("%s: skipping fdt magic at offset %#zx\n",
Josh Boyer f3da2d
+					printf("%s: skipping fdt magic at offset %#tx\n",
Josh Boyer f3da2d
 						file, p - buf);
Josh Boyer f3da2d
 			}
Josh Boyer f3da2d
 			++p;
Josh Boyer f3da2d
 		}
Peter Robinson cda652
 		if (!p || ((endp - p) < FDT_MAGIC_SIZE))
Josh Boyer f3da2d
 			die("%s: could not locate fdt magic\n", file);
Josh Boyer f3da2d
-		printf("%s: found fdt at offset %#zx\n", file, p - buf);
Josh Boyer f3da2d
+		printf("%s: found fdt at offset %#tx\n", file, p - buf);
Josh Boyer f3da2d
 		buf = p;
Josh Boyer f3da2d
 	}
Josh Boyer f3da2d