Changeset 1086 in MondoRescue for trunk/mondo/src/common/libmondo-files.c
- Timestamp:
- Feb 2, 2007, 11:21:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-files.c
r1043 r1086 155 155 156 156 if (lstat(filename, &buf)) { 157 log_msg(20, "%s does not exist", filename);157 mr_msg(20, "%s does not exist", filename); 158 158 return (FALSE); 159 159 } else { 160 log_msg(20, "%s exists", filename);160 mr_msg(20, "%s exists", filename); 161 161 return (TRUE); 162 162 } … … 331 331 332 332 if (output != NULL && does_file_exist(output)) { 333 log_msg(4, "find_home_of_exe () --- Found %s at %s", fname, output);333 mr_msg(4, "find_home_of_exe () --- Found %s at %s", fname, output); 334 334 } else { 335 335 mr_free(output); 336 log_msg(4, "find_home_of_exe() --- Could not find %s", fname);336 mr_msg(4, "find_home_of_exe() --- Could not find %s", fname); 337 337 } 338 338 return (output); … … 662 662 sz_res = call_program_and_get_last_line_of_output(command); 663 663 file_len_K = atol(sz_res); 664 log_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K);664 mr_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K); 665 665 mr_free(command); 666 666 mr_free(sz_res); … … 699 699 ("Cannot open biggielist. OK, so estimate is based on filesets only."); 700 700 } else { 701 log_msg(4, "Reading it...");701 mr_msg(4, "Reading it..."); 702 702 for (mr_getline(&fname, &n, fin); !feof(fin); 703 703 mr_getline(&fname, &n, fin)) { … … 730 730 if (file_len_K > 0) { 731 731 scratchL += file_len_K; 732 log_msg(4, "%s --> %ld K", fname, file_len_K);732 mr_msg(4, "%s --> %ld K", fname, file_len_K); 733 733 } 734 734 mr_asprintf(&comment, 735 735 "After adding %s, scratchL+%ld now equals %ld", fname, 736 736 file_len_K, scratchL); 737 log_msg(4, comment);737 mr_msg(4, comment); 738 738 mr_free(comment); 739 739 … … 948 948 949 949 /* BERLIOS: Why do we need to do it here as well ? */ 950 log_msg(4, "g_mondo_home='%s'", g_mondo_home);950 mr_msg(4, "g_mondo_home='%s'", g_mondo_home); 951 951 if ((g_mondo_home == NULL) || strlen(g_mondo_home) < 2) { 952 952 mr_free(g_mondo_home); … … 956 956 bkpinfo->scratchdir); 957 957 958 log_msg(4, "command = %s", command);958 mr_msg(4, "command = %s", command); 959 959 if (run_program_and_log_output(command, 1)) { 960 960 fatal_error("Failed to copy Mondo's stuff to scratchdir"); … … 966 966 /* i18n */ 967 967 mr_asprintf(&command, CP_BIN " --parents /usr/share/locale/*/LC_MESSAGES/mondo.mo %s",bkpinfo->scratchdir); 968 log_msg(4, "command = %s", command);968 mr_msg(4, "command = %s", command); 969 969 run_program_and_log_output(command, 1); 970 970 mr_free(command); … … 1298 1298 "#!/bin/sh\n\nmount /boot > /dev/null 2> /dev/null\ngrub-install $@\nres=$?\nsync;sync;sync\nexit $res\n"); 1299 1299 paranoid_fclose(fout); 1300 log_msg(2, "Created %s", outfile);1300 mr_msg(2, "Created %s", outfile); 1301 1301 mr_asprintf(&tmp, "chmod +x %s", outfile); 1302 1302 paranoid_system(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.