diff --git a/src/liblxc/lxc_log.h b/src/liblxc/lxc_log.h index 79d2a967a..620e10c35 100644 --- a/src/liblxc/lxc_log.h +++ b/src/liblxc/lxc_log.h @@ -12,8 +12,8 @@ #define lxc_log_debug(format, ...) lxc_log(format, "debug", ##__VA_ARGS__); #define lxc_log_trace(format, ...) lxc_log(format, "trace", ##__VA_ARGS__); #define lxc_log_syserror(format, ...) do { \ - fprintf(stderr, "[syserr][%s] \t%s:%d - " format "\n", \ - strerror(errno),__FUNCTION__, __LINE__, \ + fprintf(stderr, "[syserr] \t%s:%d: %s - " format "\n", \ + __FUNCTION__, __LINE__, strerror(errno), \ ##__VA_ARGS__); \ } while (0)