Re: [PATCH] Btrfs-progs: fix some build warnings on 32bit platform

2014-07-29 Thread David Sterba
On Tue, Jul 29, 2014 at 09:56:46PM +0800, Wang Shilong wrote: > Hi David, > > > On Sun, Jul 27, 2014 at 12:49:55AM +0800, Wang Shilong wrote: > >> cmds-restore.c:120:4: warning: format %lu expects argument of type > >> long unsigned int, but argument 3 has type size_t [-Wformat=] > >>fprintf(s

Re: [PATCH] Btrfs-progs: fix some build warnings on 32bit platform

2014-07-29 Thread Wang Shilong
Hi David, > On Sun, Jul 27, 2014 at 12:49:55AM +0800, Wang Shilong wrote: >> cmds-restore.c:120:4: warning: format %lu expects argument of type >> long unsigned int, but argument 3 has type size_t [-Wformat=] >>fprintf(stderr, "bad compress length %lu\n", in_len); > >> --- a/cmds-restore.c >>

Re: [PATCH] Btrfs-progs: fix some build warnings on 32bit platform

2014-07-29 Thread David Sterba
On Sun, Jul 27, 2014 at 12:49:55AM +0800, Wang Shilong wrote: > cmds-restore.c:120:4: warning: format %lu expects argument of type > long unsigned int, but argument 3 has type size_t [-Wformat=] > fprintf(stderr, "bad compress length %lu\n", in_len); > --- a/cmds-restore.c > +++ b/cmds-restore

[PATCH] Btrfs-progs: fix some build warnings on 32bit platform

2014-07-26 Thread Wang Shilong
Fix following build warnings on 32bit platform: ... utils.c:1708:3: warning: left shift count >= width of type [enabled by default] if (x << i & (1UL << 63)) ^ qgroup-verify.c:393:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct tree_block *