]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - macro.h
macro: add and use lxcfs_info()
[mirror_lxcfs.git] / macro.h
diff --git a/macro.h b/macro.h
index 6b1c996f6c5fba6a80e77a049eb0be32a3973860..52b442d07c6284d7ce93659b61b5b1f371eeace6 100644 (file)
--- a/macro.h
+++ b/macro.h
 #define lxcfs_v(format, ...)
 #endif /* VERBOSE */
 
+#define lxcfs_info(format, ...)                              \
+       do {                                                 \
+               fprintf(stderr, format "\n", ##__VA_ARGS__); \
+       } while (false)
+
 #define log_error_errno(__ret__, __errno__, format, ...) \
        ({                                               \
                errno = __errno__;                       \