Changeset 1133 in MondoRescue for branches/stable/mondo/src/lib/mr_msg.c


Ignore:
Timestamp:
Feb 11, 2007, 12:02:57 PM (17 years ago)
Author:
Bruno Cornec
Message:

mr_msg used low level with a debug value of 1 (0 doesn't print enough info)
mr_file reviewed to also have low level debug functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_msg.c

    r1132 r1133  
    5353 * but through other functions
    5454 * fmt needs to be just before ...
     55 * debug should be >0 to have file and line printed (real debug)
     56 * If =0 it's an informative log message
    5557 */
    5658void mr_msg_int(int debug, int line, const char *file, const char *fmt, ...) {
     
    7880        }
    7981        va_start(args,fmt);
    80         if (vfprintf(fout, fmt, args) < 0) {
     82        if (vfprintf(fout, fmt, args, "\n") < 0) {
    8183            fprintf(stderr,"Unable to print to %s\n",mr_logfile);
    8284        }
Note: See TracChangeset for help on using the changeset viewer.