mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-06 02:49:45 -06:00
14 lines
552 B
C
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 |