Commit 2a87f764 by dlezcano

improve display error

parent 1ef7a0c2
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#define lxc_log_debug(format, ...) lxc_log(format, "debug", ##__VA_ARGS__); #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_trace(format, ...) lxc_log(format, "trace", ##__VA_ARGS__);
#define lxc_log_syserror(format, ...) do { \ #define lxc_log_syserror(format, ...) do { \
fprintf(stderr, "[syserr][%s] \t%s:%d - " format "\n", \ fprintf(stderr, "[syserr] \t%s:%d: %s - " format "\n", \
strerror(errno),__FUNCTION__, __LINE__, \ __FUNCTION__, __LINE__, strerror(errno), \
##__VA_ARGS__); \ ##__VA_ARGS__); \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment