Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F2822576
log.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
log.h
View Options
#ifndef __LOG_H
#define __LOG_H
#define MSG_DEBUG 7
#define MSG_INFO 6
#define MSG_NOTICE 5
#define MSG_WARN 4
#define MSG_ERROR 3
#define MSG_CRITICAL 2
#define MSG_NULL 1
#define print_log(iif, priority, format...) \
do { \
print_fsck_log(iif, priority, __FILE__, __LINE__, ## format); \
} while(0)
#define log_debug(format...) \
do { \
print_log(0, MSG_DEBUG, format); \
} while(0)
#define log_info(format...) \
do { \
print_log(0, MSG_INFO, format); \
} while(0)
#define log_notice(format...) \
do { \
print_log(0, MSG_NOTICE, format); \
} while(0)
#define log_warn(format...) \
do { \
print_log(0, MSG_WARN, format); \
} while(0)
#define log_err(format...) \
do { \
print_log(0, MSG_ERROR, format); \
} while(0)
#define log_crit(format...) \
do { \
print_log(0, MSG_CRITICAL, format); \
} while(0)
#define stack log_debug("<backtrace> - %s()\n", __func__)
#define log_at_debug(format...) \
do { \
print_log(1, MSG_DEBUG, format); \
} while(0)
#define log_at_info(format...) \
do { \
print_log(1, MSG_INFO, format); \
} while(0)
#define log_at_notice(format...) \
do { \
print_log(1, MSG_NOTICE, format); \
} while(0)
#define log_at_warn(format...) \
do { \
print_log(1, MSG_WARN, format); \
} while(0)
#define log_at_err(format...) \
do { \
print_log(1, MSG_ERROR, format); \
} while(0)
#define log_at_crit(format...) \
do { \
print_log(1, MSG_CRITICAL, format); \
} while(0)
void increase_verbosity(void);
void decrease_verbosity(void);
void print_fsck_log(int iif, int priority, char *file, int line, const char *format, ...);
int query(struct fsck_sb *sbp, const char *format, ...);
#endif /* __LOG_H */
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Jan 25, 6:08 AM (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1321478
Default Alt Text
log.h (1 KB)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment