]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: (d)printks should use %zd for ssize_t arguments
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Jun 2011 23:55:44 +0000 (00:55 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 15:24:31 +0000 (11:24 -0400)
commitc7fd06228b994190d8369a2a0acf5224e4e13d1a
tree984982b02e8e890b5805ec7ed6605bc2afc86635
parentd771e3a43e23a37398b7e05a9d1b1036d698263c
NFS: (d)printks should use %zd for ssize_t arguments

(d)printks should use %zd for ssize_t arguments not %ld, otherwise they might
get a warning.  I see the following with MN10300.

fs/nfs/objlayout/objlayout.c: In function 'objlayout_read_done':
fs/nfs/objlayout/objlayout.c:294: warning: format '%ld' expects type 'long int', but argument 3 has type 'ssize_t'

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Trond Myklebust <Trond.Myklebust@netapp.com>
cc: linux-nfs@vger.kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/objlayout/objlayout.c