Re: [PATCH] CIFS: use correct format string for size_t

2017-02-06 Thread Sachin Prabhu
On Thu, 2017-02-02 at 13:21 +0100, Arnd Bergmann wrote: > This warning is harmless as size_t is always as wide as 'unsigned > long': > > fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of > type 'long unsigned int', but argument 5 has type 'size_t {aka > unsigned int}' [-Werror=fo

Re: [PATCH] CIFS: use correct format string for size_t

2017-02-02 Thread Pavel Shilovsky
2017-02-02 4:21 GMT-08:00 Arnd Bergmann : > This warning is harmless as size_t is always as wide as 'unsigned long': > > fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of type > 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' > [-Werror=format=] > > Usin

[PATCH] CIFS: use correct format string for size_t

2017-02-02 Thread Arnd Bergmann
This warning is harmless as size_t is always as wide as 'unsigned long': fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Werror=format=] Using %zu however is the correct format string that we don