aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-01-30 22:50:01 -0500
committerSteve French <smfrench@gmail.com>2012-01-31 08:42:08 -0500
commit000f9bb83968ebd6959ff76870f16fc8f766ebd3 (patch)
tree4c12a4eecfac33b279f86df817af73da121e027c /fs
parent4991a5faab7368daac463181e786608b4eb63675 (diff)
cifs: fix printk format warnings
Fix printk format warnings for ssize_t variables: fs/cifs/connect.c:2145:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'ssize_t' fs/cifs/connect.c:2152:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'ssize_t' fs/cifs/connect.c:2160:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'ssize_t' fs/cifs/connect.c:2170:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'ssize_t' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Acked-by: Jeff Layton <jlayton@redhat.com> Cc: linux-cifs@vger.kernel.org
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 026d6464335b..9c288653e6d6 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2142,14 +2142,14 @@ cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
2142 2142
2143 len = delim - payload; 2143 len = delim - payload;
2144 if (len > MAX_USERNAME_SIZE || len <= 0) { 2144 if (len > MAX_USERNAME_SIZE || len <= 0) {
2145 cFYI(1, "Bad value from username search (len=%ld)", len); 2145 cFYI(1, "Bad value from username search (len=%zd)", len);
2146 rc = -EINVAL; 2146 rc = -EINVAL;
2147 goto out_key_put; 2147 goto out_key_put;
2148 } 2148 }
2149 2149
2150 vol->username = kstrndup(payload, len, GFP_KERNEL); 2150 vol->username = kstrndup(payload, len, GFP_KERNEL);
2151 if (!vol->username) { 2151 if (!vol->username) {
2152 cFYI(1, "Unable to allocate %ld bytes for username", len); 2152 cFYI(1, "Unable to allocate %zd bytes for username", len);
2153 rc = -ENOMEM; 2153 rc = -ENOMEM;
2154 goto out_key_put; 2154 goto out_key_put;
2155 } 2155 }
@@ -2157,7 +2157,7 @@ cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
2157 2157
2158 len = key->datalen - (len + 1); 2158 len = key->datalen - (len + 1);
2159 if (len > MAX_PASSWORD_SIZE || len <= 0) { 2159 if (len > MAX_PASSWORD_SIZE || len <= 0) {
2160 cFYI(1, "Bad len for password search (len=%ld)", len); 2160 cFYI(1, "Bad len for password search (len=%zd)", len);
2161 rc = -EINVAL; 2161 rc = -EINVAL;
2162 kfree(vol->username); 2162 kfree(vol->username);
2163 vol->username = NULL; 2163 vol->username = NULL;
@@ -2167,7 +2167,7 @@ cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
2167 ++delim; 2167 ++delim;
2168 vol->password = kstrndup(delim, len, GFP_KERNEL); 2168 vol->password = kstrndup(delim, len, GFP_KERNEL);
2169 if (!vol->password) { 2169 if (!vol->password) {
2170 cFYI(1, "Unable to allocate %ld bytes for password", len); 2170 cFYI(1, "Unable to allocate %zd bytes for password", len);
2171 rc = -ENOMEM; 2171 rc = -ENOMEM;
2172 kfree(vol->username); 2172 kfree(vol->username);
2173 vol->username = NULL; 2173 vol->username = NULL;