[Tux3] Small warning fix

Pranith Kumar bobby.prani at gmail.com
Fri Oct 17 04:05:52 PDT 2008


--
Pranith.

--- filemap.c.orig	2008-10-17 16:27:29.774643000 +0530
+++ filemap.c	2008-10-17 16:28:09.707083000 +0530
@@ -94,7 +94,7 @@ int filemap_extent_io(struct buffer *buf

 	index_t start, limit;
 	guess_extent(buffer, &start, &limit, 1);
-	printf("---- extent 0x%Lx/%Lx ----\n", (L)start, (L)limit - start);
+	printf("---- extent 0x%Lx/%Lx ----\n", (L)start, (L)(limit - start));
 	struct path path[levels + 1];
 	struct extent seg[1000];
 	if ((err = probe(&inode->btree, start, path)))
@@ -176,7 +176,7 @@ retry:;

 	printf("segs (offset = %Lx):", (L)offset);
 	for (i = 0, index = start; i < segs; i++) {
-		printf(" %Lx => %Lx/%x;", (L)index - offset, (L)seg[i].block,
extent_count(seg[i]));
+		printf(" %Lx => %Lx/%x;", (L)(index - offset), (L)seg[i].block,
extent_count(seg[i]));
 		index += extent_count(seg[i]);
 	}
 	printf(" (%i)\n", segs);

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



More information about the Tux3 mailing list