]> granicus.if.org Git - strace/blobdiff - loop.c
Update NEWS
[strace] / loop.c
diff --git a/loop.c b/loop.c
index 33773368d7c6e5de158c63a3fc29138b8e5f4455..2de33c5fd6ffee5feeb6f4e7c6618a6a51f7d933 100644 (file)
--- a/loop.c
+++ b/loop.c
@@ -73,8 +73,8 @@ decode_loop_info(struct tcb *tcp, const long addr)
        }
 
        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 @@ decode_loop_info64(struct tcb *tcp, const long addr)
        }
 
        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
@@ -187,6 +187,12 @@ loop_ioctl(struct tcb *tcp, const unsigned int code, long arg)
                break;
 #endif
 
+#ifdef LOOP_SET_DIRECT_IO
+       case LOOP_SET_DIRECT_IO:
+               tprintf(", %lu", arg);
+               break;
+#endif
+
        default:
                return RVAL_DECODED;
        }