[Tux3] Small warning fix

OGAWA Hirofumi hirofumi at mail.parknet.co.jp
Fri Oct 17 05:43:25 PDT 2008


"Pranith Kumar" <bobby.prani at gmail.com> writes:

> --- 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);

Whoops, sorry about that. gcc-4.3.2 didn't warn those. If warning flags
is bothering us, we can just reject that patch.
-- 
OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>

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



More information about the Tux3 mailing list