log: add missing variable and fix CMD_SYSINFO()

parent 53c76225
...@@ -464,7 +464,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -464,7 +464,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
do { \ do { \
lxc_log_strerror_r; \ lxc_log_strerror_r; \
fprintf(stderr, "%s - %s: %d: %s: " format "\n", __FILE__, \ fprintf(stderr, "%s - %s: %d: %s: " format "\n", __FILE__, \
__LINE__, __func__, ##__VA_ARGS__); \ __LINE__, __func__, ptr, ##__VA_ARGS__); \
} while (0) } while (0)
#endif #endif
...@@ -472,10 +472,11 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -472,10 +472,11 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#define CMD_SYSINFO(format, ...) \ #define CMD_SYSINFO(format, ...) \
printf("%m - " format, ##__VA_ARGS__) printf("%m - " format, ##__VA_ARGS__)
#else #else
#define CMD_SYSINFO(format, ...) \ #define CMD_SYSINFO(format, ...) \
do { \ do { \
lxc_log_strerror_r; \ lxc_log_strerror_r; \
printf("%s - " format, ptr, ##__VA_ARGS__); \ prinft("%s - %s: %d: %s: " format "\n", __FILE__, __LINE__, \
__func__, ptr, ##__VA_ARGS__); \
} while (0) } while (0)
#endif #endif
......
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