Commit 3efe55b0 authored by David Howells's avatar David Howells

afs: Fix length of dump of bad YFSFetchStatus record

Fix the length of the dump of a bad YFSFetchStatus record.  The function
was copied from the AFS version, but the YFS variant contains bigger fields
and extra information, so expand the dump to match.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent b98f0ec9
...@@ -165,15 +165,15 @@ static void xdr_dump_bad(const __be32 *bp) ...@@ -165,15 +165,15 @@ static void xdr_dump_bad(const __be32 *bp)
int i; int i;
pr_notice("YFS XDR: Bad status record\n"); pr_notice("YFS XDR: Bad status record\n");
for (i = 0; i < 5 * 4 * 4; i += 16) { for (i = 0; i < 6 * 4 * 4; i += 16) {
memcpy(x, bp, 16); memcpy(x, bp, 16);
bp += 4; bp += 4;
pr_notice("%03x: %08x %08x %08x %08x\n", pr_notice("%03x: %08x %08x %08x %08x\n",
i, ntohl(x[0]), ntohl(x[1]), ntohl(x[2]), ntohl(x[3])); i, ntohl(x[0]), ntohl(x[1]), ntohl(x[2]), ntohl(x[3]));
} }
memcpy(x, bp, 4); memcpy(x, bp, 8);
pr_notice("0x50: %08x\n", ntohl(x[0])); pr_notice("0x60: %08x %08x\n", ntohl(x[0]), ntohl(x[1]));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment