Changeset 3509 in MondoRescue for branches/3.2/mondo/src/include
- Timestamp:
- Feb 13, 2016, 2:57:55 AM (9 years ago)
- Location:
- branches/3.2/mondo/src/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/include/mr_msg.h
r2208 r3509 16 16 /* functions (public methods) */ 17 17 18 #define mr_msg( x,y,args...) {mr_msg_int(x,__LINE__,__FILE__,y,## args);}19 extern void mr_msg_init(const char * configfile, int loglevel);18 #define mr_msg(lvl,fmt,args...) {mr_msg_int(lvl,__LINE__,__FILE__,__FUNCTION__,fmt,## args);} 19 extern void mr_msg_init(const char *logfile, int loglevel); 20 20 extern void mr_msg_close(void); 21 21 extern void mr_msg_loglevel(int loglevel); … … 23 23 /* Internal function bringing debuging info 24 24 * called indirectly through macros */ 25 extern inline void mr_msg_int(int debug, int line, const char *file, const char *fmt, ...);25 extern inline void mr_msg_int(int debug, int line, const char *file, const char *function, const char *fmt, ...); 26 26 27 27 #endif /* MR_MSG_H */ -
branches/3.2/mondo/src/include/mr_sys.h
r3498 r3509 14 14 #include <stdarg.h> 15 15 #include <stdio.h> 16 17 /* functions (public methods) */ 18 19 #define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args) 16 #include "mr_msg.h" 20 17 21 18 /* Internal function bringing debuging info … … 23 20 extern inline int mr_system_int(int line, char *file, const char *fmt, ...); 24 21 22 /* functions (public methods) */ 23 #define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args) 24 25 /* Global variables */ 26 27 extern int mr_loglevel; 28 extern char *mr_logfile; 29 25 30 #endif /* MR_SYS_H */
Note:
See TracChangeset
for help on using the changeset viewer.