Changeset 1133 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.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_mem.c

    r1104 r1133  
    3535        *allocated = NULL;
    3636    } else {
    37         mr_msg_int(0,line,file,"Attempt to reference NULL pointer\nExiting...");
     37        mr_msg_int(1,line,file,"Attempt to reference NULL pointer\nExiting...");
    3838        mr_exit(-1,"Attempt to reference NULL pointer");
    3939    }
     
    4747    ret = malloc(size);
    4848    if (ret == NULL) {
    49         mr_msg_int(0,line,file,"Unable to alloc memory in mr_malloc\nExiting...");
     49        mr_msg_int(1,line,file,"Unable to alloc memory in mr_malloc\nExiting...");
    5050        mr_exit(-1,"Unable to alloc memory in mr_malloc");
    5151    }
     
    6060    ret = getline(lineptr,n,stream);
    6161    if (ret == -1) {
    62         mr_msg_int(0,line,file,"Unable to alloc memory in mr_getline\nExiting...",line,file);
     62        mr_msg_int(1,line,file,"Unable to alloc memory in mr_getline\nExiting...");
    6363        mr_exit(-1,"Unable to alloc memory in mr_getline");
    6464    }
     
    7474    res = vasprintf(strp, fmt, args);
    7575    if (res == -1) {
    76         mr_msg_int(0,line,file,"Unable to alloc memory in mr_asprintf\nExiting...",line,file);
     76        mr_msg_int(1,line,file,"Unable to alloc memory in mr_asprintf\nExiting...");
    7777        mr_exit(-1,"Unable to alloc memory in mr_asprintf");
    7878    }
Note: See TracChangeset for help on using the changeset viewer.