]> Zhao Yanbai Git Server - minix.git/commitdiff
btrace: gcc fix
authorDavid van Moolenbroek <david@minix3.org>
Wed, 7 Dec 2011 10:52:12 +0000 (11:52 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 7 Dec 2011 10:52:40 +0000 (11:52 +0100)
commands/btrace/btrace.c

index 716313ca83596b3d761e8eaa233457e6da4fda50..1bacf1eb5867486243aa0e9dd9333a30aa557635 100644 (file)
@@ -6,6 +6,7 @@
 #include <fcntl.h>
 #include <minix/types.h>
 #include <minix/btrace.h>
+#include <minix/u64.h>
 #include <sys/ioc_block.h>
 
 static void usage(char *name)
@@ -135,7 +136,7 @@ static void dump_entry(btrace_entry *entry)
 
   switch (entry->request) {
   case BTREQ_OPEN:
-       printf("- access:\t%lx\n", entry->size);
+       printf("- access:\t%x\n", entry->size);
        break;
   case BTREQ_READ:
   case BTREQ_WRITE: