[Tux3] [PATCH] More 64 bit format string cleanups

Shapor Naghibzadeh shapor at gmail.com
Mon Aug 18 00:57:32 PDT 2008


# HG changeset patch
# User shapor at yzf.shapor.com
# Date 1219046241 25200
# Node ID 6f97b85da8697a640647412709dd1c6d6e11299a
# Parent  06058dde8c59bd443f2165fc9aa466356275da51
More 64 bit format string cleanups

diff -r 06058dde8c59 -r 6f97b85da869 user/test/btree.c
--- a/user/test/btree.c	Mon Aug 18 00:37:16 2008 -0700
+++ b/user/test/btree.c	Mon Aug 18 00:57:21 2008 -0700
@@ -501,7 +501,7 @@ int advance(struct inode *inode, struct 
 		brelse(buffer);
 		buffer = path[--level].buffer;
 		node = buffer->data;
-		printf("pop to level %i, %i of %i nodes\n", level, path[level].next - node->entries, node->count);
+		printf("pop to level %i, %ti of %i nodes\n", level, path[level].next - node->entries, node->count);
 	} while (finished_level(path, level));
 	do {
 		if (!(buffer = bread(inode->map, path[level++].next++->block))) {
diff -r 06058dde8c59 -r 6f97b85da869 user/test/inode.c
--- a/user/test/inode.c	Mon Aug 18 00:37:16 2008 -0700
+++ b/user/test/inode.c	Mon Aug 18 00:57:21 2008 -0700
@@ -211,7 +211,7 @@ int main(int argc, char *argv[])
 	u64 size = 0;
 	if (fdsize64(fd, &size))
 		error("fdsize64 failed for '%s' (%s)", name, strerror(errno));
-	printf("fd '%s' = %i (0x%Lx bytes)\n", name, fd, size);
+	printf("fd '%s' = %i (0x%Lx bytes)\n", name, fd, (L)size);
 
 	struct dev *dev = &(struct dev){ fd, .bits = 12 };
 	struct map *map = new_map(dev, NULL);

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



More information about the Tux3 mailing list