From 2a87f7643ecd584beae27107b247a66b20018333 Mon Sep 17 00:00:00 2001 From: dlezcano Date: Wed, 3 Sep 2008 16:13:03 +0000 Subject: [PATCH] improve display error --- src/liblxc/lxc_log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)