diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2007-10-12 16:34:54 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-10-15 09:50:55 +1000 |
commit | 44f7f2f92038572663acf22b4fd8dc34640c8c81 (patch) | |
tree | abe8f9af67e859984fab67dad30b27ee38dd94a9 /utils/gssd/cacheio.c | |
parent | 9d88647ae72b92b497d9590bfa5fd9685033e7d6 (diff) | |
download | nfs-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/cacheio.c')
-rw-r--r-- | utils/gssd/cacheio.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/utils/gssd/cacheio.c b/utils/gssd/cacheio.c index e24ef56..f47f1fa 100644 --- a/utils/gssd/cacheio.c +++ b/utils/gssd/cacheio.c @@ -153,17 +153,12 @@ void qword_addeol(char **bpp, int *lp) } static char qword_buf[8192]; -static char tmp_buf[8192]; void qword_print(FILE *f, char *str) { char *bp = qword_buf; int len = sizeof(qword_buf); qword_add(&bp, &len, str); fwrite(qword_buf, bp-qword_buf, 1, f); - /* XXX: */ - memcpy(tmp_buf, qword_buf, bp-qword_buf); - tmp_buf[bp-qword_buf] = '\0'; - printerr(2, "%s", tmp_buf); } void qword_printhex(FILE *f, char *str, int slen) @@ -172,16 +167,11 @@ void qword_printhex(FILE *f, char *str, int slen) int len = sizeof(qword_buf); qword_addhex(&bp, &len, str, slen); fwrite(qword_buf, bp-qword_buf, 1, f); - /* XXX: */ - memcpy(tmp_buf, qword_buf, bp-qword_buf); - tmp_buf[bp-qword_buf] = '\0'; - printerr(2, "%s", tmp_buf); } void qword_printint(FILE *f, int num) { fprintf(f, "%d ", num); - printerr(2, "%d ", num); } int qword_eol(FILE *f) @@ -189,7 +179,6 @@ int qword_eol(FILE *f) int err; fprintf(f,"\n"); err = fflush(f); - printerr(2, "\n"); return err; } |