diff options
author | Sebastian Geerken <devnull@localhost> | 2015-02-04 23:10:46 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-02-04 23:10:46 +0100 |
commit | a5fb7d09a8381c2e0d35b50513379b780751e978 (patch) | |
tree | 7ca1e51f6f48abd03a29421705c33dcf4505a14d /lout | |
parent | 39ea01bc7165c62af2517c88b05dd89d540ab233 (diff) |
Updated 'debug_rtfl.hh'.
Diffstat (limited to 'lout')
-rw-r--r-- | lout/debug_rtfl.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lout/debug_rtfl.hh b/lout/debug_rtfl.hh index 72a06138..616424c2 100644 --- a/lout/debug_rtfl.hh +++ b/lout/debug_rtfl.hh @@ -42,12 +42,12 @@ // this function cannot be used to print the characters "d", "p", and // "s" directly. -inline void rtfl_print (const char *version, const char *file, int line, - const char *fmt, ...) +inline void rtfl_print (const char *module, const char *version, + const char *file, int line, const char *fmt, ...) { // "\n" at the beginning just in case that the previous line is not // finished yet. - printf ("\n[rtfl-%s]%s:%d:%d:", version, file, line, getpid ()); + printf ("\n[rtfl-%s-%s]%s:%d:%d:", module, version, file, line, getpid ()); va_list args; va_start (args, fmt); @@ -94,14 +94,14 @@ inline void rtfl_print (const char *version, const char *file, int line, fflush (stdout); } -#define RTFL_PRINT(version, cmd, fmt, ...) \ - rtfl_print (version, CUR_WORKING_DIR "/" __FILE__, __LINE__, "s:" fmt, \ - cmd, __VA_ARGS__) +#define RTFL_PRINT(module, version, cmd, fmt, ...) \ + rtfl_print (module, version, CUR_WORKING_DIR "/" __FILE__, __LINE__, \ + "s:" fmt, cmd, __VA_ARGS__) #define RTFL_OBJ_VERSION "1.0" #define RTFL_OBJ_PRINT(cmd, fmt, ...) \ - RTFL_PRINT (RTFL_OBJ_VERSION, "obj-" cmd, fmt, __VA_ARGS__) + RTFL_PRINT ("obj", RTFL_OBJ_VERSION, cmd, fmt, __VA_ARGS__) #define DBG_OBJ_MSG(aspect, prio, msg) \ DBG_OBJ_MSG_O (aspect, prio, this, msg) |