diff options
author | Mateusz Guzik <mguzik@redhat.com> | 2014-03-11 12:27:52 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-03-11 14:05:35 -0400 |
commit | e72d258d0d70fe036a5814c1a13975302cab3f17 (patch) | |
tree | 276647a75730ff1e533ec9f962434583b2687c92 /support/include/xlog.h | |
parent | 2204097a0a960c88658e28a688eca58c9c5722e4 (diff) | |
download | nfs-utils-e72d258d0d70fe036a5814c1a13975302cab3f17.tar.gz nfs-utils-e72d258d0d70fe036a5814c1a13975302cab3f17.tar.xz nfs-utils-e72d258d0d70fe036a5814c1a13975302cab3f17.zip |
nfsidmap: fix error reporting for nfs4_* family of functions
Errors were logged with xlog_err function relying on errno, but these
functions don't set it.
Fix the problem by introducing xlog_errno which set errno
Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/xlog.h')
-rw-r--r-- | support/include/xlog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/include/xlog.h b/support/include/xlog.h index fd34ec2..06dc1ab 100644 --- a/support/include/xlog.h +++ b/support/include/xlog.h @@ -45,6 +45,7 @@ int xlog_enabled(int fac); void xlog(int fac, const char *fmt, ...); void xlog_warn(const char *fmt, ...); void xlog_err(const char *fmt, ...); +void xlog_errno(int err, const char *fmt, ...); void xlog_backend(int fac, const char *fmt, va_list args); #endif /* XLOG_H */ |