Re: [PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-22 Thread Chen Gang
On 06/22/2014 02:06 PM, Joe Perches wrote: > On Sun, 2014-06-22 at 11:14 +0800, Chen Gang wrote: >> For subtraction between 2 pointers, the result's type is 'long', so >> need use '%lx' instead of '%zx'. > > result should be a ptrdiff_t so please use %tx > OK, thanks, I shall send patch v2 for

Re: [PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-22 Thread Joe Perches
On Sun, 2014-06-22 at 11:14 +0800, Chen Gang wrote: > For subtraction between 2 pointers, the result's type is 'long', so > need use '%lx' instead of '%zx'. result should be a ptrdiff_t so please use %tx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-22 Thread Joe Perches
On Sun, 2014-06-22 at 11:14 +0800, Chen Gang wrote: For subtraction between 2 pointers, the result's type is 'long', so need use '%lx' instead of '%zx'. result should be a ptrdiff_t so please use %tx -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: [PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-22 Thread Chen Gang
On 06/22/2014 02:06 PM, Joe Perches wrote: On Sun, 2014-06-22 at 11:14 +0800, Chen Gang wrote: For subtraction between 2 pointers, the result's type is 'long', so need use '%lx' instead of '%zx'. result should be a ptrdiff_t so please use %tx OK, thanks, I shall send patch v2 for it.

[PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-21 Thread Chen Gang
For subtraction between 2 pointers, the result's type is 'long', so need use '%lx' instead of '%zx'. The related warning (allmodconfig under unicore32): CC [M] fs/ntfs/compress.o fs/ntfs/compress.c: In function 'ntfs_decompress': fs/ntfs/compress.c:207:2: warning: format '%zx' expects

[PATCH] fs/ntfs: Use '%lx' instead of '%zx'

2014-06-21 Thread Chen Gang
For subtraction between 2 pointers, the result's type is 'long', so need use '%lx' instead of '%zx'. The related warning (allmodconfig under unicore32): CC [M] fs/ntfs/compress.o fs/ntfs/compress.c: In function 'ntfs_decompress': fs/ntfs/compress.c:207:2: warning: format '%zx' expects