Ignore:
Timestamp:
Jun 17, 2009, 10:53:23 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Simplify log_it calls when possible (with just a fixed string)
  • issue with truncate_to_drive_name reported by valgrind at restore time. Needs rewrite IMO
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-tools.c

    r2226 r2230  
    13451345
    13461346    if (debug_level <= g_loglevel) {
    1347         va_start(args, fmt);
    13481347        if (!(fout = fopen(MONDO_LOGFILE, "a"))) {
    13491348            return;
     
    13611360                fprintf(fout, "[TH=%d] %s->%s#%d: ", getpid(), szFile, szFunction, nLine);
    13621361        }
     1362        va_start(args, fmt);
    13631363        vfprintf(fout, fmt, args);
     1364        va_end(args);
    13641365
    13651366        // do not slow down the progran if standard debug level
     
    13681369        //if (g_dwDebugLevel != 1)
    13691370
    1370         va_end(args);
    13711371        fprintf(fout, "\n");
    13721372        paranoid_fclose(fout);
Note: See TracChangeset for help on using the changeset viewer.