diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-09-26 13:23:18 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-09-26 13:23:18 -0400 |
commit | 7862a784c2990b1f5330959d30069a637a041715 (patch) | |
tree | dbffbd2feb34f01fac19d16462b9addb21a54bb1 /support/nfs/cacheio.c | |
parent | e36a9e8af8bba0ff661da3c8dc0656bfe9952767 (diff) | |
download | nfs-utils-7862a784c2990b1f5330959d30069a637a041715.tar.gz nfs-utils-7862a784c2990b1f5330959d30069a637a041715.tar.xz nfs-utils-7862a784c2990b1f5330959d30069a637a041715.zip |
sm-notify command: clean up error logging
Clean up a few issues with logging in sm-notify.c.
Sometimes in sm-notify, when a system call fails the problem is reported
to stderr but not logged, and then usually sm-notify exits. In cases like
this, there are probably more hosts to notify, but sm-notify dies silently.
Make sure these errors are logged, and that the log messages explain the
nature of the problem.
Also, if sm-notify exits prematurely, make sure this is always reported at
the LOG_ERR level, not at the LOG_WARNING level.
Remove a couple of unnecessary '\n' in the arguments of nsm_log() calls --
nsm_log() already appends an '\n' to the message.
Finally, use exit() consistently in main().
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/cacheio.c')
0 files changed, 0 insertions, 0 deletions