Changeset 1086 in MondoRescue for trunk/mondo/src/common/libmondo-files.c


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

log_msg => mr_msg in trunk

File:
1 edited

Legend:

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

    r1043 r1086  
    155155
    156156    if (lstat(filename, &buf)) {
    157         log_msg(20, "%s does not exist", filename);
     157        mr_msg(20, "%s does not exist", filename);
    158158        return (FALSE);
    159159    } else {
    160         log_msg(20, "%s exists", filename);
     160        mr_msg(20, "%s exists", filename);
    161161        return (TRUE);
    162162    }
     
    331331
    332332    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);
    334334    } else {
    335335        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);
    337337    }
    338338    return (output);
     
    662662    sz_res = call_program_and_get_last_line_of_output(command);
    663663    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);
    665665    mr_free(command);
    666666    mr_free(sz_res);
     
    699699            ("Cannot open biggielist. OK, so estimate is based on filesets only.");
    700700    } else {
    701         log_msg(4, "Reading it...");
     701        mr_msg(4, "Reading it...");
    702702        for (mr_getline(&fname, &n, fin); !feof(fin);
    703703             mr_getline(&fname, &n, fin)) {
     
    730730            if (file_len_K > 0) {
    731731                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);
    733733            }
    734734            mr_asprintf(&comment,
    735735                    "After adding %s, scratchL+%ld now equals %ld", fname,
    736736                    file_len_K, scratchL);
    737             log_msg(4, comment);
     737            mr_msg(4, comment);
    738738            mr_free(comment);
    739739
     
    948948
    949949    /* 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);
    951951    if ((g_mondo_home == NULL) || strlen(g_mondo_home) < 2) {
    952952        mr_free(g_mondo_home);
     
    956956            bkpinfo->scratchdir);
    957957
    958     log_msg(4, "command = %s", command);
     958    mr_msg(4, "command = %s", command);
    959959    if (run_program_and_log_output(command, 1)) {
    960960        fatal_error("Failed to copy Mondo's stuff to scratchdir");
     
    966966    /* i18n */
    967967    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);
    969969    run_program_and_log_output(command, 1);
    970970    mr_free(command);
     
    12981298                "#!/bin/sh\n\nmount /boot > /dev/null 2> /dev/null\ngrub-install $@\nres=$?\nsync;sync;sync\nexit $res\n");
    12991299        paranoid_fclose(fout);
    1300         log_msg(2, "Created %s", outfile);
     1300        mr_msg(2, "Created %s", outfile);
    13011301        mr_asprintf(&tmp, "chmod +x %s", outfile);
    13021302        paranoid_system(tmp);
Note: See TracChangeset for help on using the changeset viewer.