Files
ternfs-XTXMarkets/kmod/log.h
Francesco Mazzoli cd86e632e2 Implement RS recovery, although it won't really be used now...
...since it only relies on block service flags, and we don't
set them right now.
2023-06-03 17:27:54 +00:00

14 lines
552 B
C

#ifndef _EGGSFS_LOG_H
#define _EGGSFS_LOG_H
extern int eggsfs_debug_output;
#define eggsfs_error_print(fmt, args...) printk(KERN_ERR "eggsfs: %s: " fmt "\n", __func__, ##args)
#define eggsfs_warn_print(fmt, args...) printk(KERN_WARNING "eggsfs: %s: " fmt "\n", __func__, ##args)
#define eggsfs_info_print(fmt, args...) printk(KERN_INFO "eggsfs: %s: " fmt "\n", __func__, ##args)
#define eggsfs_debug_print(fmt, args...) \
if (unlikely(eggsfs_debug_output)) { \
printk(KERN_DEBUG "eggsfs: %s: " fmt "\n", __func__, ##args); \
}
#endif