Peter Robinson f6254d
--- dtc-1.4.2/fdtdump.c.orig	2016-12-26 22:44:17.000000000 +0000
Peter Robinson f6254d
+++ dtc-1.4.2/fdtdump.c	2017-02-28 01:29:28.250537073 +0000
Peter Robinson f6254d
@@ -98,7 +98,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 f6254d
@@ -138,8 +138,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 f6254d
@@ -222,14 +222,14 @@
Peter Robinson f6254d
 				if (valid_header(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 f6254d
 		if (!p || endp - p < sizeof(struct fdt_header))
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;
Peter Robinson f6254d
 	} else if (!valid_header(buf, len))
Peter Robinson f6254d
 		die("%s: header is not valid\n", file);