2018-08-18 21:06:00 +00:00
|
|
|
--- dtc-1.4.7/fdtdump.c.orig 2018-07-23 04:00:50.000000000 +0100
|
|
|
|
+++ dtc-1.4.7/fdtdump.c 2018-08-18 22:04:23.059267042 +0100
|
|
|
|
@@ -100,7 +100,7 @@
|
2013-06-06 17:52:22 +00:00
|
|
|
p = p_struct;
|
|
|
|
while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
|
|
|
|
|
2018-08-18 21:06:00 +00:00
|
|
|
- dumpf("%04zx: tag: 0x%08"PRIx32" (%s)\n",
|
|
|
|
+ dumpf("%04tx: tag: 0x%08"PRIx32" (%s)\n",
|
2013-06-06 17:52:22 +00:00
|
|
|
(uintptr_t)p - blob_off - 4, tag, tagname(tag));
|
|
|
|
|
|
|
|
if (tag == FDT_BEGIN_NODE) {
|
2018-08-18 21:06:00 +00:00
|
|
|
@@ -140,8 +140,8 @@
|
2013-06-06 17:52:22 +00:00
|
|
|
|
|
|
|
p = PALIGN(p + sz, 4);
|
|
|
|
|
|
|
|
- dumpf("%04zx: string: %s\n", (uintptr_t)s - blob_off, s);
|
|
|
|
- dumpf("%04zx: value\n", (uintptr_t)t - blob_off);
|
|
|
|
+ dumpf("%04tx: string: %s\n", (uintptr_t)s - blob_off, s);
|
|
|
|
+ dumpf("%04tx: value\n", (uintptr_t)t - blob_off);
|
|
|
|
printf("%*s%s", depth * shift, "", s);
|
|
|
|
utilfdt_print_data(t, sz);
|
|
|
|
printf(";\n");
|
2018-08-18 21:06:00 +00:00
|
|
|
@@ -229,14 +229,14 @@
|
2017-02-28 17:05:56 +00:00
|
|
|
if (valid_header(p, this_len))
|
2013-06-06 17:52:22 +00:00
|
|
|
break;
|
|
|
|
if (debug)
|
|
|
|
- printf("%s: skipping fdt magic at offset %#zx\n",
|
|
|
|
+ printf("%s: skipping fdt magic at offset %#tx\n",
|
|
|
|
file, p - buf);
|
|
|
|
}
|
|
|
|
++p;
|
|
|
|
}
|
2017-02-28 17:05:56 +00:00
|
|
|
if (!p || endp - p < sizeof(struct fdt_header))
|
2013-06-06 17:52:22 +00:00
|
|
|
die("%s: could not locate fdt magic\n", file);
|
|
|
|
- printf("%s: found fdt at offset %#zx\n", file, p - buf);
|
|
|
|
+ printf("%s: found fdt at offset %#tx\n", file, p - buf);
|
|
|
|
buf = p;
|
2017-02-28 17:05:56 +00:00
|
|
|
} else if (!valid_header(buf, len))
|
|
|
|
die("%s: header is not valid\n", file);
|