diff options
Diffstat (limited to 'support/nfs/xlog.c')
-rw-r--r-- | support/nfs/xlog.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/support/nfs/xlog.c b/support/nfs/xlog.c index 83d07e1..594ae9b 100644 --- a/support/nfs/xlog.c +++ b/support/nfs/xlog.c @@ -27,6 +27,7 @@ #include <stdio.h> #include <stdarg.h> #include <syslog.h> +#include <errno.h> #include "nfslib.h" #undef VERBOSE_PRINTF @@ -220,3 +221,14 @@ xlog_err(const char* fmt, ...) xlog_backend(L_FATAL, fmt, args); va_end(args); } + +void +xlog_errno(int err, const char *fmt, ...) +{ + va_list args; + + errno = err; + va_start(args, fmt); + xlog_backend(L_FATAL, fmt, args); + va_end(args); +} |