]> git.decadent.org.uk Git - nfs-utils.git/commit
Cleanup xlog logging code to be safe and usable for all
authorKevin Coffman <kwc@citi.umich.edu>
Fri, 12 Oct 2007 20:35:15 +0000 (16:35 -0400)
committerNeil Brown <neilb@suse.de>
Sun, 14 Oct 2007 23:50:56 +0000 (09:50 +1000)
commitf0a6165a611c28e94513b1c2df5826b23d154ba4
tree2f816abdfb824009a75ae55b3723a55d61ab9af3
parentbb5eb9d268938023b59896912d598d3ba1a88c90
Cleanup xlog logging code to be safe and usable for all

This patch reworks the xlog logging code to avoid rebuilding the message into a
fixed size buffer. It also adds two new logging functions xlog_warn and
xlog_err which are replacements for idmap_warn and idmap_err. There use to be
two different variates of these functions with the only difference being that
one flavor tacked on the error string to the end of the message. This
responsibility has been pushed to the called of the function since it
needlessly complicated the function and required us to rebuild the message
strings.

Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
support/include/xlog.h
support/nfs/xlog.c