---
 dm.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dm.c b/dm.c
index a48aa72..ff9e8ad 100644
--- a/dm.c
+++ b/dm.c
@@ -342,7 +342,11 @@ dm_known_ioctl(struct tcb *tcp, const unsigned int code, 
long arg)
                return 1;
        }
 
-       tprintf("%s{version=%d.%d.%d",  entering(tcp) ? ", " : " => ",
+       /*
+        * device mapper code uses %d in some places and %u in another, but
+        * fields themselves are declared as __u32.
+        */
+       tprintf("%s{version=%u.%u.%u",  entering(tcp) ? ", " : " => ",
                ioc->version[0], ioc->version[1], ioc->version[2]);
        /*
         * if we use a different version of ABI, do not attempt to decode
-- 
1.7.10.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to