dtc/use-tx-as-the-type-specifier-instead-of-zx.patch

40 lines
1.2 KiB
Diff
Raw Normal View History

2016-09-11 10:59:35 +00:00
--- dtc-1.4.2/fdtdump.c.orig 2016-09-03 12:02:30.000000000 +0100
+++ dtc-1.4.2/fdtdump.c 2016-09-11 11:58:07.656497902 +0100
@@ -97,7 +97,7 @@
p = p_struct;
while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
- dumpf("%04zx: tag: 0x%08x (%s)\n",
+ dumpf("%04tx: tag: 0x%08x (%s)\n",
(uintptr_t)p - blob_off - 4, tag, tagname(tag));
if (tag == FDT_BEGIN_NODE) {
2016-09-11 10:59:35 +00:00
@@ -137,8 +137,8 @@
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");
2016-09-11 10:59:35 +00:00
@@ -212,14 +212,14 @@
fdt_off_dt_strings(p) < this_len)
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;
}
2016-09-11 10:59:35 +00:00
if (!p || ((endp - p) < FDT_MAGIC_SIZE))
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;
}