diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 23:32:26 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 23:49:13 -0400 |
commit | fad7f13ae13b03edfd8f0f2833af09d3a65a6bc7 (patch) | |
tree | 52e8ac1196a7dc98dbdcff164bd20c33d16a75f5 /sim/ppc/tree.c | |
parent | 7b83db6a74c6cb68b3804890ab9037460e21fedf (diff) | |
download | gdb-fad7f13ae13b03edfd8f0f2833af09d3a65a6bc7.zip gdb-fad7f13ae13b03edfd8f0f2833af09d3a65a6bc7.tar.gz gdb-fad7f13ae13b03edfd8f0f2833af09d3a65a6bc7.tar.bz2 |
sim: ppc: clean up printf format handling
Don't blindly cast every possible type to (long). Change to the right
printf format specifier whether it be a 64-bit type or a pointer.
Diffstat (limited to 'sim/ppc/tree.c')
-rw-r--r-- | sim/ppc/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/tree.c b/sim/ppc/tree.c index 5c35d32..4df862b 100644 --- a/sim/ppc/tree.c +++ b/sim/ppc/tree.c @@ -392,9 +392,9 @@ INLINE_TREE\ tree_init(device *root, psim *system) { - TRACE(trace_device_tree, ("tree_init(root=0x%lx, system=0x%lx)\n", - (long)root, - (long)system)); + TRACE(trace_device_tree, ("tree_init(root=%p, system=%p)\n", + root, + system)); /* remove the old, rebuild the new */ tree_traverse(root, device_clean, NULL, system); tree_traverse(root, device_init_static_properties, NULL, system); |