Ignore:
Timestamp:
Feb 8, 2007, 12:09:34 AM (13 years ago)
Author:
Bruno Cornec
Message:

log_msg => mr_msg for common files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-raid.c

    r1103 r1107  
    633633    get_next_raidtab_line(fin, label, value);
    634634    while (!feof(fin)) {
    635         log_msg(1, "Looking for raid record #%d", items);
     635        mr_msg(1, "Looking for raid record #%d", items);
    636636        initialize_raidrec(&raidlist->el[items]);
    637637        v = 0;
     
    646646        raidlist->el[items].additional_vars.entries = v;
    647647        if (feof(fin)) {
    648             log_msg(1, "No more records.");
     648            mr_msg(1, "No more records.");
    649649            continue;
    650650        }
    651         log_msg(2, "Record #%d (%s) found", items, value);
     651        mr_msg(2, "Record #%d (%s) found", items, value);
    652652        strcpy(raidlist->el[items].raid_device, value);
    653653        for (get_next_raidtab_line(fin, label, value);
     
    660660    paranoid_fclose(fin);
    661661    raidlist->entries = items;
    662     log_msg(1, "Raidtab loaded successfully.");
    663     log_msg(1, "%d RAID devices in raidtab", items);
     662    mr_msg(1, "Raidtab loaded successfully.");
     663    mr_msg(1, "%d RAID devices in raidtab", items);
    664664    mr_free(tmp);
    665665    mr_free(label);
     
    732732            raidrec->parity = 3;
    733733        } else {
    734             log_msg(1, "Unknown RAID parity algorithm '%s'\n.", value);
     734            mr_msg(1, "Unknown RAID parity algorithm '%s'\n.", value);
    735735        }
    736736    } else if (!strcmp(label, "device")) {
     
    991991  // open file
    992992  if (!(fin = fopen(MDSTAT_FILE, "r"))) {
    993     log_msg(1, "Could not open %s.\n", MDSTAT_FILE);
     993    mr_msg(1, "Could not open %s.\n", MDSTAT_FILE);
    994994    return 1;
    995995  }
     
    10371037    token = mr_strtok (string, delims, &lastpos);
    10381038    if (!strcmp(token, "inactive")) {
    1039       log_msg(1, "RAID device '%s' inactive.\n",
     1039      mr_msg(1, "RAID device '%s' inactive.\n",
    10401040         raidlist->el[raidlist->entries].raid_device);
    10411041      mr_free(string);
     
    10641064      raidlist->el[raidlist->entries].raid_level = 10;
    10651065    } else {
    1066       log_msg(1, "Unknown RAID level '%s'.\n", token);
     1066      mr_msg(1, "Unknown RAID level '%s'.\n", token);
    10671067      mr_free(string);
    10681068      mr_free(token);
     
    11081108        break;
    11091109      default: // error
    1110         log_msg(1, "Unknown device type '%c'\n", type);
     1110        mr_msg(1, "Unknown device type '%c'\n", type);
    11111111        mr_free(string);
    11121112        mr_free(token);
     
    12001200    break;
    12011201      default: // error
    1202     log_msg(1, "Row %d should not occur in record!\n", row);
     1202    mr_msg(1, "Row %d should not occur in record!\n", row);
    12031203    break;
    12041204      }
Note: See TracChangeset for help on using the changeset viewer.