exportfs: Use xlog() for error reporting
authorChuck Lever <chuck.lever@oracle.com>
Tue, 24 Aug 2010 11:19:34 +0000 (07:19 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 24 Aug 2010 11:22:52 +0000 (07:22 -0400)
commit26fd34002585e6a5aa09204b0b01d836fa83dcf3
treebfbe050d39bf3a6b6e120a11bf8e96a7a11b2874
parent6d7babe6afae068e8a1054f785785d374788f5ee
exportfs: Use xlog() for error reporting

exportfs already invokes xlog_open() because libexport.a uses xlog()
exclusively for error reporting and debugging messages.  If we can
use xlog() throughout exportfs itself, that enables xlog debugging
messages everywhere in the code path.

In addition, use xlog() instead of fprintf(stderr) for reporting
errors in exportfs.c, to be consistent with libexport.a and other
components of nfs-utils.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/exportfs/exportfs.c