Escolar Documentos
Profissional Documentos
Cultura Documentos
__attribute__((format(printf,
__attribute__((format(printf,
__attribute__((format(printf,
__attribute__((format(printf,
__attribute__((format(printf,
__attribute__((format(printf,
6,
6,
6,
6,
6,
6,
0)));
0)));
0)));
0)));
0)));
0)));
gets logged */
<< 0) /* x = 42 */
<< 1) /* Entering function x() */
<< 2) /* Quietable output */
<< 3) /* Volume needs defragmenting */
<< 4) /* Forced to continue */
<< 5) /* 54% complete */
<< 6) /* You should backup before starting *
<< 7) /* Operation failed, no damage done */
<< 8) /* Message : standard error descriptio
<< 9) /* Operation failed,damage may have oc
<< 10) /* Enter a function */
<< 11) /* Leave a function */
#ifdef DEBUG
#define ntfs_log_debug(FORMAT, ARGS...) ntfs_log_redirect(__FUNCTION__,__FILE__,
__LINE__,NTFS_LOG_LEVEL_DEBUG,NULL,FORMAT,##ARGS)
#define ntfs_log_trace(FORMAT, ARGS...) ntfs_log_redirect(__FUNCTION__,__FILE__,
__LINE__,NTFS_LOG_LEVEL_TRACE,NULL,FORMAT,##ARGS)
#define ntfs_log_enter(FORMAT, ARGS...) ntfs_log_redirect(__FUNCTION__,__FILE__,
__LINE__,NTFS_LOG_LEVEL_ENTER,NULL,FORMAT,##ARGS)
#define ntfs_log_leave(FORMAT, ARGS...) ntfs_log_redirect(__FUNCTION__,__FILE__,
__LINE__,NTFS_LOG_LEVEL_LEAVE,NULL,FORMAT,##ARGS)
#else
#define ntfs_log_debug(FORMAT, ARGS...)do {} while (0)
#define ntfs_log_trace(FORMAT, ARGS...)do {} while (0)
#define ntfs_log_enter(FORMAT, ARGS...)do {} while (0)
#define ntfs_log_leave(FORMAT, ARGS...)do {} while (0)
#endif /* DEBUG */
void ntfs_log_early_error(const char *format, ...)
__attribute__((format(printf, 1, 2)));
#endif /* _LOGGING_H_ */