Changeset 3380 in MondoRescue for branches/3.2/mondo/src/common/libmondo-raid.c
- Timestamp:
- May 6, 2015, 11:57:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-raid.c
r3191 r3380 712 712 raidrec->parity = 3; 713 713 } else { 714 log_msg(1, "Unknown RAID parity algorithm '%s' \n.", value);714 log_msg(1, "Unknown RAID parity algorithm '%s'", value); 715 715 } 716 716 log_msg(4,"Found raid parity %d",raidrec->parity); … … 976 976 // open file 977 977 if (!(fin = fopen(mdstat_fname, "r"))) { 978 log_msg(1, "Could not open %s. \n", mdstat_fname);978 log_msg(1, "Could not open %s.", mdstat_fname); 979 979 return 1; 980 980 } … … 989 989 while ( !feof_unlocked(fin) ) { 990 990 res = getline(&string, &len, fin); 991 log_msg(8, "mdstat line '%s' read. \n", string);991 log_msg(8, "mdstat line '%s' read.", string); 992 992 if (res <= 0) break; 993 993 // trim spaces 994 994 strip_spaces(string); 995 log_msg(8, "mdstat line 2 '%s' read. \n", string);995 log_msg(8, "mdstat line 2 '%s' read.", string); 996 996 // if we have newline after only spaces, this is a blank line, update 997 997 // counters, otherwise do normal parsing … … 1004 1004 case 1: // device information 1005 1005 // check whether last line of record and if so skip 1006 log_msg(8, "This is the device line \n");1006 log_msg(8, "This is the device line"); 1007 1007 pos = strcasestr(string, "unused devices: "); 1008 1008 if (pos != NULL) { … … 1050 1050 } 1051 1051 if (!strcmp(token, "inactive")) { 1052 log_msg(1, "RAID device '%s' inactive. \n", raidlist->el[raidlist->entries].raid_device);1052 log_msg(1, "RAID device '%s' inactive.", raidlist->el[raidlist->entries].raid_device); 1053 1053 mr_free(string); 1054 1054 mr_free(token); … … 1089 1089 raidlist->el[raidlist->entries].raid_level = 10; 1090 1090 } else { 1091 log_msg(1, "Unknown RAID level '%s' .\n", token);1091 log_msg(1, "Unknown RAID level '%s'", token); 1092 1092 mr_free(string); 1093 1093 mr_free(token); … … 1133 1133 break; 1134 1134 default: // error 1135 log_msg(1, "Unknown device type '%c' \n", type);1135 log_msg(1, "Unknown device type '%c'", type); 1136 1136 mr_free(string); 1137 1137 mr_free(token); … … 1227 1227 if (raidlist->el[raidlist->entries].progress != -1 && 1228 1228 raidlist->el[raidlist->entries].progress != 999) { 1229 log_msg(1, "Row %d should not occur in record! \n", row);1229 log_msg(1, "Row %d should not occur in record!", row); 1230 1230 } 1231 1231 break;
Note:
See TracChangeset
for help on using the changeset viewer.