Ignore:
Timestamp:
Feb 2, 2007, 11:21:27 PM (13 years ago)
Author:
Bruno Cornec
Message:

log_msg => mr_msg in trunk

File:
1 edited

Legend:

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

    r1081 r1086  
    599599    get_next_raidtab_line(fin, label, value);
    600600    while (!feof(fin)) {
    601         log_msg(1, "Looking for raid record #%d", items);
     601        mr_msg(1, "Looking for raid record #%d", items);
    602602        initialize_raidrec(&raidlist->el[items]);
    603603        v = 0;
     
    611611        raidlist->el[items].additional_vars.entries = v;
    612612        if (feof(fin)) {
    613             log_msg(1, "No more records.");
     613            mr_msg(1, "No more records.");
    614614            continue;
    615615        }
    616         log_msg(2, "Record #%d (%s) found", items, value);
     616        mr_msg(2, "Record #%d (%s) found", items, value);
    617617        raidlist->el[items].raid_device = value;
    618618        for (get_next_raidtab_line(fin, label, value);
     
    625625    paranoid_fclose(fin);
    626626    raidlist->entries = items;
    627     log_msg(1, "Raidtab loaded successfully.");
    628     log_msg(1, "%d RAID devices in raidtab", items);
     627    mr_msg(1, "Raidtab loaded successfully.");
     628    mr_msg(1, "%d RAID devices in raidtab", items);
    629629    return (0);
    630630}
     
    686686            raidrec->parity = 3;
    687687        } else {
    688             log_msg(1, "Unknown RAID parity algorithm '%s'\n.", value);
     688            mr_msg(1, "Unknown RAID parity algorithm '%s'\n.", value);
    689689        }
    690690    } else if (!strcmp(label, "device")) {
     
    946946  // open file
    947947  if (!(fin = fopen(MDSTAT_FILE, "r"))) {
    948     log_msg(1, "Could not open %s.\n", MDSTAT_FILE);
     948    mr_msg(1, "Could not open %s.\n", MDSTAT_FILE);
    949949    return 1;
    950950  }
     
    990990    token = mr_strtok (string, delims, &lastpos);
    991991    if (!strcmp(token, "inactive")) {
    992       log_msg(1, "RAID device '%s' inactive.\n",
     992      mr_msg(1, "RAID device '%s' inactive.\n",
    993993         raidlist->el[raidlist->entries].raid_device);
    994994      mr_free(string);
     
    10171017      raidlist->el[raidlist->entries].raid_level = 10;
    10181018    } else {
    1019       log_msg(1, "Unknown RAID level '%s'.\n", token);
     1019      mr_msg(1, "Unknown RAID level '%s'.\n", token);
    10201020      mr_free(string);
    10211021      mr_free(token);
     
    10611061        break;
    10621062      default: // error
    1063         log_msg(1, "Unknown device type '%c'\n", type);
     1063        mr_msg(1, "Unknown device type '%c'\n", type);
    10641064        mr_free(string);
    10651065        mr_free(token);
     
    11531153    break;
    11541154      default: // error
    1155     log_msg(1, "Row %d should not occur in record!\n", row);
     1155    mr_msg(1, "Row %d should not occur in record!\n", row);
    11561156    break;
    11571157      }
Note: See TracChangeset for help on using the changeset viewer.