mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
replace __FILE__ with __file__
This commit is contained in:
committed by
svenhoefer
parent
54e1d3eecb
commit
70b7f74362
@@ -61,11 +61,11 @@ class CLogging
|
||||
|
||||
// print show file and linenumber
|
||||
#define log_printfX(fmt, args...) \
|
||||
do { CLogging::getInstance()->printf("[yhttpd(%s:%d)] " fmt, __FILE__, __LINE__, ## args); } while (0)
|
||||
do { CLogging::getInstance()->printf("[yhttpd(%s:%d)] " fmt, __file__, __LINE__, ## args); } while (0)
|
||||
|
||||
//Set Watch Point (show file and linenumber and function)
|
||||
#define WP() \
|
||||
do { CLogging::getInstance()->printf("[yhttpd(%s:%d)%s]\n", __FILE__, __LINE__, __FUNCTION__); } while (0)
|
||||
do { CLogging::getInstance()->printf("[yhttpd(%s:%d)%s]\n", __file__, __LINE__, __FUNCTION__); } while (0)
|
||||
|
||||
// print if level matches
|
||||
#define log_level_printf(level, fmt, args...) \
|
||||
@@ -73,7 +73,7 @@ class CLogging
|
||||
|
||||
// print if level matches / show file and linenumber
|
||||
#define log_level_printfX(level, fmt, args...) \
|
||||
do { if(CLogging::getInstance()->LogLevel>=level) CLogging::getInstance()->printf("[yhttpd#%d(%s:%d)] " fmt, level, __FILE__, __LINE__, ## args); } while (0)
|
||||
do { if(CLogging::getInstance()->LogLevel>=level) CLogging::getInstance()->printf("[yhttpd#%d(%s:%d)] " fmt, level, __file__, __LINE__, ## args); } while (0)
|
||||
|
||||
// print only if debug is on
|
||||
#define dprintf(fmt, args...) \
|
||||
|
Reference in New Issue
Block a user