[Tux3] [PATCH] More 64 bit format string cleanups (again)

Conrad Meyer konrad at tylerc.org
Mon Sep 1 20:54:35 PDT 2008


diff -r dc0f4243e276 user/test/inode.c
--- a/user/test/inode.c	Mon Sep 01 12:51:37 2008 -0700
+++ b/user/test/inode.c	Mon Sep 01 16:56:37 2008 -0700
@@ -418,7 +418,7 @@
 	/* Always 8K regardless of blocksize */
 	int reserve = 1 << (sb->blockbits > 13 ? 0 : 13 - sb->blockbits);
 	for (int i = 0; i < reserve; i++)
-		printf("reserve %Lx\n", balloc_from_range(sb->bitmap, i, 1));
+		printf("reserve %Lx\n", (L)balloc_from_range(sb->bitmap, i, 1));
 
 	printf("---- create inode table ----\n");
 	sb->itree = new_btree(sb, &itree_ops);
diff -r dc0f4243e276 user/test/tux3.c
--- a/user/test/tux3.c	Mon Sep 01 12:51:37 2008 -0700
+++ b/user/test/tux3.c	Mon Sep 01 16:56:37 2008 -0700
@@ -136,7 +136,7 @@
 #endif
 		if (seekarg) {
 			u64 seek = strtoull(seekarg, NULL, 0);
-			printf("seek to %Li\n", seek);
+			printf("seek to %Li\n", (L)seek);
 			tuxseek(file, seek);
 		}
 		char text[2 << 16];
@@ -172,7 +172,7 @@
 		//tuxseek(file, (1LL << 60) - 12);
 		if (seekarg) {
 			u64 seek = strtoull(seekarg, NULL, 0);
-			printf("seek to %Li\n", seek);
+			printf("seek to %Li\n", (L)seek);
 			tuxseek(file, seek);
 		}
 		memset(buf, 0, sizeof(buf));



_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list