aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-11-07 15:59:36 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-11-07 15:59:36 +1100
commitff2ad38f6a5a87603c519096fd7066082c4c6f75 (patch)
tree45f3305801eeb85ad6f37854ed1447746a9e2cb7
parentaa7254d9cb173b43714013eef3769475948956f9 (diff)
parent49903aed77832e47f052d094d10ebe75077835e6 (diff)
downloaddtc-ff2ad38f6a5a87603c519096fd7066082c4c6f75.zip
dtc-ff2ad38f6a5a87603c519096fd7066082c4c6f75.tar.gz
dtc-ff2ad38f6a5a87603c519096fd7066082c4c6f75.tar.bz2
Merge remote-tracking branch 'origin/pr/18'
-rw-r--r--fdtdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fdtdump.c b/fdtdump.c
index 289fff6..760a25c 100644
--- a/fdtdump.c
+++ b/fdtdump.c
@@ -100,7 +100,7 @@ static void dump_blob(void *blob, bool debug)
p = p_struct;
while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
- dumpf("%04zx: tag: 0x%08"PRIx32" (%s)\n",
+ dumpf("%04tx: tag: 0x%08"PRIx32" (%s)\n",
(uintptr_t)p - blob_off - 4, tag, tagname(tag));
if (tag == FDT_BEGIN_NODE) {
@@ -140,8 +140,8 @@ static void dump_blob(void *blob, bool debug)
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");
@@ -229,14 +229,14 @@ int main(int argc, char *argv[])
if (valid_header(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;
}
if (!p || endp - p < sizeof(struct fdt_header))
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;
} else if (!valid_header(buf, len))
die("%s: header is not valid\n", file);