Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
91c9bb1f
Commit
91c9bb1f
authored
Sep 19, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/nfs/nfs{2,3}xdr.c: Use correct printf format for size_t.
parent
a3a132ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
fs/nfs/nfs2xdr.c
fs/nfs/nfs2xdr.c
+2
-2
fs/nfs/nfs3xdr.c
fs/nfs/nfs3xdr.c
+2
-2
No files found.
fs/nfs/nfs2xdr.c
View file @
91c9bb1f
...
@@ -251,7 +251,7 @@ nfs_xdr_readres(struct rpc_rqst *req, u32 *p, struct nfs_readres *res)
...
@@ -251,7 +251,7 @@ nfs_xdr_readres(struct rpc_rqst *req, u32 *p, struct nfs_readres *res)
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
if
(
iov
->
iov_len
<
hdrlen
)
{
if
(
iov
->
iov_len
<
hdrlen
)
{
printk
(
KERN_WARNING
"NFS: READ reply header overflowed:"
printk
(
KERN_WARNING
"NFS: READ reply header overflowed:"
"length %d > %
d
\n
"
,
hdrlen
,
iov
->
iov_len
);
"length %d > %
Zu
\n
"
,
hdrlen
,
iov
->
iov_len
);
return
-
errno_NFSERR_IO
;
return
-
errno_NFSERR_IO
;
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
dprintk
(
"NFS: READ header is short. iovec will be shifted.
\n
"
);
dprintk
(
"NFS: READ header is short. iovec will be shifted.
\n
"
);
...
@@ -404,7 +404,7 @@ nfs_xdr_readdirres(struct rpc_rqst *req, u32 *p, void *dummy)
...
@@ -404,7 +404,7 @@ nfs_xdr_readdirres(struct rpc_rqst *req, u32 *p, void *dummy)
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
if
(
iov
->
iov_len
<
hdrlen
)
{
if
(
iov
->
iov_len
<
hdrlen
)
{
printk
(
KERN_WARNING
"NFS: READDIR reply header overflowed:"
printk
(
KERN_WARNING
"NFS: READDIR reply header overflowed:"
"length %d > %
d
\n
"
,
hdrlen
,
iov
->
iov_len
);
"length %d > %
Zu
\n
"
,
hdrlen
,
iov
->
iov_len
);
return
-
errno_NFSERR_IO
;
return
-
errno_NFSERR_IO
;
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
dprintk
(
"NFS: READDIR header is short. iovec will be shifted.
\n
"
);
dprintk
(
"NFS: READDIR header is short. iovec will be shifted.
\n
"
);
...
...
fs/nfs/nfs3xdr.c
View file @
91c9bb1f
...
@@ -525,7 +525,7 @@ nfs3_xdr_readdirres(struct rpc_rqst *req, u32 *p, struct nfs3_readdirres *res)
...
@@ -525,7 +525,7 @@ nfs3_xdr_readdirres(struct rpc_rqst *req, u32 *p, struct nfs3_readdirres *res)
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
if
(
iov
->
iov_len
<
hdrlen
)
{
if
(
iov
->
iov_len
<
hdrlen
)
{
printk
(
KERN_WARNING
"NFS: READDIR reply header overflowed:"
printk
(
KERN_WARNING
"NFS: READDIR reply header overflowed:"
"length %d > %
d
\n
"
,
hdrlen
,
iov
->
iov_len
);
"length %d > %
Zu
\n
"
,
hdrlen
,
iov
->
iov_len
);
return
-
errno_NFSERR_IO
;
return
-
errno_NFSERR_IO
;
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
dprintk
(
"NFS: READDIR header is short. iovec will be shifted.
\n
"
);
dprintk
(
"NFS: READDIR header is short. iovec will be shifted.
\n
"
);
...
@@ -808,7 +808,7 @@ nfs3_xdr_readres(struct rpc_rqst *req, u32 *p, struct nfs_readres *res)
...
@@ -808,7 +808,7 @@ nfs3_xdr_readres(struct rpc_rqst *req, u32 *p, struct nfs_readres *res)
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
hdrlen
=
(
u8
*
)
p
-
(
u8
*
)
iov
->
iov_base
;
if
(
iov
->
iov_len
<
hdrlen
)
{
if
(
iov
->
iov_len
<
hdrlen
)
{
printk
(
KERN_WARNING
"NFS: READ reply header overflowed:"
printk
(
KERN_WARNING
"NFS: READ reply header overflowed:"
"length %d > %
d
\n
"
,
hdrlen
,
iov
->
iov_len
);
"length %d > %
Zu
\n
"
,
hdrlen
,
iov
->
iov_len
);
return
-
errno_NFSERR_IO
;
return
-
errno_NFSERR_IO
;
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
}
else
if
(
iov
->
iov_len
!=
hdrlen
)
{
dprintk
(
"NFS: READ header is short. iovec will be shifted.
\n
"
);
dprintk
(
"NFS: READ header is short. iovec will be shifted.
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment