summaryrefslogtreecommitdiffstats
path: root/utils/gssd/cacheio.c
diff options
context:
space:
mode:
authorkwc@citi.umich.edu <kwc@citi.umich.edu>2006-07-03 18:34:27 -0400
committerNeil Brown <neilb@suse.de>2006-07-04 10:27:15 +1000
commit3da69ce5c4fac5677e91aa20e60750ab8de2ab97 (patch)
treeec5e42ab00eb7257b0490750031b9005065da47b /utils/gssd/cacheio.c
parent0b2a5b574c7ffd99aa3226d36e1d261826405625 (diff)
downloadnfs-utils-3da69ce5c4fac5677e91aa20e60750ab8de2ab97.tar.gz
nfs-utils-3da69ce5c4fac5677e91aa20e60750ab8de2ab97.tar.xz
nfs-utils-3da69ce5c4fac5677e91aa20e60750ab8de2ab97.zip
Clean up the printerr() logging function.
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> Update the printerr() function to: 1) Determine whether we'll print the message before going to all the work of formatting it. 2) Don't just toss away messages that are too long for the buffer. Print what we can and give an indication of the truncation with "..." at the end. 3) Use a single buffer rather than two. 4) Messages either go to syslog (with level ERR) or stderr. Don't send some messages to syslog level DEBUG.
Diffstat (limited to 'utils/gssd/cacheio.c')
0 files changed, 0 insertions, 0 deletions