mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
replace __FILE__ with __file__
Origin commit data
------------------
Commit: 70b7f74362
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-10 (Sun, 10 Jan 2016)
This commit is contained in:
committed by
vanhofen
parent
2b00b2936c
commit
50df4dfbb0
@@ -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