Changeset 3380 in MondoRescue
- Timestamp:
- May 6, 2015, 11:57:35 PM (10 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/3.2/mondo/src/common/libmondo-archive.c ¶
r3379 r3380 2848 2848 fout = fopen(tmp, "w"); 2849 2849 if (fout == NULL) { 2850 log_msg(1, "Unable to open and write to %s \n", tmp);2850 log_msg(1, "Unable to open and write to %s", tmp); 2851 2851 mr_free(tmp); 2852 2852 mr_free(suffix); -
TabularUnified branches/3.2/mondo/src/common/libmondo-cli.c ¶
r3379 r3380 121 121 log_msg(3, "media_size = %ld", bkpinfo->media_size); 122 122 if (bkpinfo->media_size <= 0) { 123 log_msg(1, "You gave media an invalid size %s \n", value);123 log_msg(1, "You gave media an invalid size %s", value); 124 124 return (-1); 125 125 } … … 999 999 void help_screen() 1000 1000 { 1001 log_msg(1, "Type 'man mondoarchive' for more information \n");1001 log_msg(1, "Type 'man mondoarchive' for more information"); 1002 1002 exit(1); 1003 1003 } -
TabularUnified branches/3.2/mondo/src/common/libmondo-devices.c ¶
r3379 r3380 135 135 136 136 mr_asprintf(tmp, "%s", where_is_root_mounted()); 137 log_msg(0, "root is mounted at %s \n", tmp);137 log_msg(0, "root is mounted at %s", tmp); 138 138 log_msg(0, "That doesn't mean %s is the root partition. It's just a debugging message. Relax. It's part of am_I_in_disaster_recovery_mode().", tmp); 139 139 … … 2880 2880 2881 2881 mr_asprintf(exclude_these_directories,"%s", call_program_and_get_last_line_of_output("mount -t coda,ncpfs,fuse.sshfs,nfs,nfs4,vmhgfs,smbfs,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' '|' | awk '{print $0;}'")); 2882 log_msg(9,"list_of_NETFS_mounts_only returns %s \n",exclude_these_directories);2882 log_msg(9,"list_of_NETFS_mounts_only returns %s",exclude_these_directories); 2883 2883 return(exclude_these_directories); 2884 2884 } -
TabularUnified branches/3.2/mondo/src/common/libmondo-filelist.c ¶
r3292 r3380 276 276 } 277 277 if (siz > g_max_biggie_size) { 278 log_msg(10, "Adding %s to big files (size = %ld) \n", incoming, siz);278 log_msg(10, "Adding %s to big files (size = %ld)", incoming, siz); 279 279 fprintf(fbig, "%s\n", incoming); 280 280 } else { 281 281 curr_set_size += siz; 282 log_msg(10, "Adding %s to filelist %d (size = %ld) \n", incoming, curr_set_no, siz);282 log_msg(10, "Adding %s to filelist %d (size = %ld)", incoming, curr_set_no, siz); 283 283 fprintf(fout, "%s\n", incoming); 284 284 if (curr_set_size > maxsetsizeK) { … … 462 462 mr_asprintf(syscall, "%s '%s' 2>> /dev/null", syscall_sprintf, tmp); // " MONDO_LOGFILE); 463 463 mr_free(tmp); 464 log_msg(20,"calling %s \n",syscall);464 log_msg(20,"calling %s",syscall); 465 465 call_exe_and_pipe_output_to_fd(syscall, pout); 466 466 mr_free(syscall); … … 608 608 609 609 i = strcmp(p, q); 610 log_msg(my_depth, "'%s' v '%s' --> %d \n", p, q, i);610 log_msg(my_depth, "'%s' v '%s' --> %d", p, q, i); 611 611 612 612 // printf("%s v %s --> %d\n", p, q, i); 613 613 614 614 if (i < 0) { // read another subset file in. 615 log_msg(my_depth, "Reading next subset line in \n\n");615 log_msg(my_depth, "Reading next subset line in"); 616 616 mr_free(current_subset_file); 617 617 mr_getline(current_subset_file, faclin); … … 947 947 948 948 if (!node->ch) { 949 log_msg(0, "%s \n", current_string);949 log_msg(0, "%s", current_string); 950 950 } 951 951 -
TabularUnified 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; -
TabularUnified branches/3.2/mondo/src/common/libmondo-verify.c ¶
r3337 r3380 952 952 953 953 sync(); 954 log_msg(2, "OK, I've mounted the USB Disk/Key \n");954 log_msg(2, "OK, I've mounted the USB Disk/Key"); 955 955 mr_asprintf(tmp, "%s/archives/NOT-THE-LAST", mountpoint); 956 956 if (!does_file_exist(tmp)) { … … 982 982 retval++; 983 983 } else { 984 log_msg(2, "OK, I've unmounted the USB device \n");984 log_msg(2, "OK, I've unmounted the USB device"); 985 985 } 986 986 mr_free(tmp1); … … 1080 1080 mr_free(command); 1081 1081 } 1082 log_msg(2, "OK, I've mounted the ISO/CD \n");1082 log_msg(2, "OK, I've mounted the ISO/CD"); 1083 1083 mr_asprintf(tmp, "%s/archives/NOT-THE-LAST", mountpoint); 1084 1084 if (!does_file_exist(tmp)) { … … 1113 1113 retval++; 1114 1114 } else { 1115 log_msg(2, "OK, I've unmounted the ISO file \n");1115 log_msg(2, "OK, I've unmounted the ISO file"); 1116 1116 } 1117 1117 mr_free(mountpoint); -
TabularUnified branches/3.2/mondo/src/mondoarchive/mondoarchive.c ¶
r3333 r3380 275 275 #define MDSTAT_FILE "/tmp/mdstat" 276 276 if (!(fin = fopen(MDSTAT_FILE, "r"))) { 277 log_msg(1, "Could not open %s. \n", MDSTAT_FILE);277 log_msg(1, "Could not open %s.", MDSTAT_FILE); 278 278 finish(1); 279 279 } -
TabularUnified branches/3.2/mondo/src/mondorestore/mondo-prep.c ¶
r3377 r3380 604 604 log_msg(4, "cmd built: %s", program); 605 605 mr_strcat(program, " %s", devices); 606 log_msg(2, "RAID device re-created with the following command:\n%s \n", program);606 log_msg(2, "RAID device re-created with the following command:\n%s", program); 607 607 if (test == TRUE) { 608 608 res = run_program_and_log_output(program, 1); -
TabularUnified branches/3.2/mondo/src/mondorestore/mondorestore.c ¶
r3374 r3380 397 397 g_current_media_number++; 398 398 mds = media_descriptor_string(bkpinfo->backup_media_type); 399 log_msg(2, "Asking for %s #%d so that I may read slice #%ld \n", mds, g_current_media_number, sliceno);399 log_msg(2, "Asking for %s #%d so that I may read slice #%ld", mds, g_current_media_number, sliceno); 400 400 mr_free(mds); 401 401 … … 1359 1359 if (current_bigfile_number != noof_biggiefiles 1360 1360 && noof_biggiefiles != 0) { 1361 log_msg(1, "Warning - bigfileno=%ld but noof_biggiefiles=%ld \n", current_bigfile_number, noof_biggiefiles);1361 log_msg(1, "Warning - bigfileno=%ld but noof_biggiefiles=%ld", current_bigfile_number, noof_biggiefiles); 1362 1362 } else { 1363 1363 log_msg(1, "%ld biggiefiles in biggielist.txt; %ld biggiefiles processed today.", noof_biggiefiles, current_bigfile_number);
Note:
See TracChangeset
for help on using the changeset viewer.