SUNRPC: fix print format for tk_pid in auth_gss support
The tk_pid field is an unsigned short. The proper print format specifier for that type is %5u, not %4d. Also clean up some miscellaneous print formatting nits. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
a3f565b1e5
commit
8885cb367f
@@ -72,7 +72,7 @@ spkm3_read_token(struct spkm3_ctx *ctx,
|
||||
/* decode the token */
|
||||
|
||||
if (toktype != SPKM_MIC_TOK) {
|
||||
dprintk("RPC: BAD SPKM3 token type: %d\n", toktype);
|
||||
dprintk("RPC: BAD SPKM3 token type: %d\n", toktype);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ spkm3_read_token(struct spkm3_ctx *ctx,
|
||||
goto out;
|
||||
|
||||
if (*cksum++ != 0x03) {
|
||||
dprintk("RPC: spkm3_read_token BAD checksum type\n");
|
||||
dprintk("RPC: spkm3_read_token BAD checksum type\n");
|
||||
goto out;
|
||||
}
|
||||
md5elen = *cksum++;
|
||||
@@ -97,7 +97,8 @@ spkm3_read_token(struct spkm3_ctx *ctx,
|
||||
*/
|
||||
ret = GSS_S_DEFECTIVE_TOKEN;
|
||||
if (!g_OID_equal(&ctx->intg_alg, &hmac_md5_oid)) {
|
||||
dprintk("RPC: gss_spkm3_seal: unsupported I-ALG algorithm\n");
|
||||
dprintk("RPC: gss_spkm3_seal: unsupported I-ALG "
|
||||
"algorithm\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -113,7 +114,7 @@ spkm3_read_token(struct spkm3_ctx *ctx,
|
||||
ret = GSS_S_BAD_SIG;
|
||||
code = memcmp(md5cksum.data, wire_cksum.data, wire_cksum.len);
|
||||
if (code) {
|
||||
dprintk("RPC: bad MIC checksum\n");
|
||||
dprintk("RPC: bad MIC checksum\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user