summaryrefslogtreecommitdiffstats
path: root/utils/gssd/svcgssd_proc.c
diff options
context:
space:
mode:
authorKevin Coffman <kwc@citi.umich.edu>2007-10-12 16:34:54 -0400
committerNeil Brown <neilb@suse.de>2007-10-15 09:50:55 +1000
commit44f7f2f92038572663acf22b4fd8dc34640c8c81 (patch)
treeabe8f9af67e859984fab67dad30b27ee38dd94a9 /utils/gssd/svcgssd_proc.c
parent9d88647ae72b92b497d9590bfa5fd9685033e7d6 (diff)
downloadnfs-utils-44f7f2f92038572663acf22b4fd8dc34640c8c81.tar.gz
nfs-utils-44f7f2f92038572663acf22b4fd8dc34640c8c81.tar.xz
nfs-utils-44f7f2f92038572663acf22b4fd8dc34640c8c81.zip
Use printerr to print svcgssd downcall debugging info
Rather than depending on modified qword_* functions to print svcgssd debugging information, use printerr in the downcall function. And while we're at it, label things so we know what we're looking at! Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/gssd/svcgssd_proc.c')
-rw-r--r--utils/gssd/svcgssd_proc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/gssd/svcgssd_proc.c b/utils/gssd/svcgssd_proc.c
index 52c3aaf..2dffa83 100644
--- a/utils/gssd/svcgssd_proc.c
+++ b/utils/gssd/svcgssd_proc.c
@@ -90,8 +90,14 @@ do_svc_downcall(gss_buffer_desc *out_handle, struct svc_cred *cred,
qword_printint(f, cred->cr_uid);
qword_printint(f, cred->cr_gid);
qword_printint(f, cred->cr_ngroups);
- for (i=0; i < cred->cr_ngroups; i++)
+ printerr(2, "mech: %s, hndl len: %d, ctx len %d, timeout: %d, "
+ "uid: %d, gid: %d, num aux grps: %d:\n",
+ fname, out_handle->length, context_token->length, 0x7fffffff,
+ cred->cr_uid, cred->cr_gid, cred->cr_ngroups);
+ for (i=0; i < cred->cr_ngroups; i++) {
qword_printint(f, cred->cr_groups[i]);
+ printerr(2, " (%4d) %d\n", i+1, cred->cr_groups[i]);
+ }
qword_print(f, fname);
qword_printhex(f, context_token->value, context_token->length);
err = qword_eol(f);