loop.c: fix printing of arrays
* loop.c (decode_loop_info): Use square brackets to print
struct loop_info.lo_init and struct loop_info.reserved arrays.
(decode_loop_info64): Use square brackets to print
struct loop_info64.lo_init array.
diff --git a/loop.c b/loop.c
index 3377336..ac092b5 100644
--- a/loop.c
+++ b/loop.c
@@ -73,8 +73,8 @@
}
if (!abbrev(tcp))
- tprintf(", lo_init={%#lx, %#lx}"
- ", reserved={%#x, %#x, %#x, %#x}}",
+ tprintf(", lo_init=[%#lx, %#lx]"
+ ", reserved=[%#x, %#x, %#x, %#x]}",
info.lo_init[0], info.lo_init[1],
info.reserved[0], info.reserved[1],
info.reserved[2], info.reserved[3]);
@@ -132,7 +132,7 @@
}
if (!abbrev(tcp))
- tprintf(", lo_init={%#" PRIx64 ", %#" PRIx64 "}}",
+ tprintf(", lo_init=[%#" PRIx64 ", %#" PRIx64 "]}",
(uint64_t) info64.lo_init[0],
(uint64_t) info64.lo_init[1]);
else