Changeset 3509 in MondoRescue for branches/3.2/mondo/src/lib/mr_sys.c


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/lib/mr_sys.c

    r3498 r3509  
    3636    res = vasprintf(&cmd, fmt, args);
    3737    if (res == -1) {
    38         mr_msg_int(1,line,file,"Unable to alloc memory in mr_asprintf\nExiting...");
    39         mr_exit(-1,"Unable to alloc memory in mr_asprintf");
     38        mr_msg_int(1,line,file,"mr_system_int","Unable to alloc memory in mr_system_int\nExiting...");
     39        mr_exit(-1,"Unable to alloc memory in mr_system_int");
    4040    }
    4141    /*
     
    4343    */
    4444    res = system(cmd);
     45    if (res < 0 ) {
     46        mr_msg(4, "Unable to execute %s",cmd);
     47    }
    4548    mr_free(cmd);
    4649    va_end(args);
Note: See TracChangeset for help on using the changeset viewer.