From: Kevin Coffman Date: Fri, 12 Oct 2007 20:35:15 +0000 (-0400) Subject: Cleanup xlog logging code to be safe and usable for all X-Git-Tag: nfs-utils-1-1-1~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=f0a6165a611c28e94513b1c2df5826b23d154ba4;hp=f0a6165a611c28e94513b1c2df5826b23d154ba4 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 Signed-off-by: Kevin Coffman Signed-off-by: Neil Brown ---