Changeset 3509 in MondoRescue for branches/3.2/mondo/src/include/mr_sys.h


Ignore:
Timestamp:
Feb 13, 2016, 2:57:55 AM (4 years ago)
Author:
Bruno Cornec
Message:
  • Change mr_msg_int interface by adding the FUNCTION macro
  • Use mr_msg in mr_system
  • Ability to use that new log system everywhere now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/include/mr_sys.h

    r3498 r3509  
    1414#include <stdarg.h>
    1515#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"
    2017
    2118/* Internal function bringing debuging info
     
    2320extern inline int mr_system_int(int line, char *file, const char *fmt, ...);
    2421
     22/* functions (public methods) */
     23#define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args)
     24
     25/*  Global variables */
     26
     27extern int mr_loglevel;
     28extern char *mr_logfile;
     29
    2530#endif                          /* MR_SYS_H */
Note: See TracChangeset for help on using the changeset viewer.