Ignore:
Timestamp:
Feb 8, 2007, 12:09:34 AM (17 years ago)
Author:
Bruno Cornec
Message:

log_msg => mr_msg for common files

File:
1 edited

Legend:

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

    r1100 r1107  
    183183    //  assert_string_is_neither_NULL_nor_zerolength(filename);
    184184    if (lstat(filename, &buf)) {
    185         log_msg(20, "%s does not exist", filename);
     185        mr_msg(20, "%s does not exist", filename);
    186186        return (FALSE);
    187187    } else {
    188         log_msg(20, "%s exists", filename);
     188        mr_msg(20, "%s exists", filename);
    189189        return (TRUE);
    190190    }
     
    355355    strcpy(output, incoming);
    356356    if (output[0] != '\0' && does_file_exist(output)) {
    357         log_msg(4, "find_home_of_exe () --- Found %s at %s", fname,
     357        mr_msg(4, "find_home_of_exe () --- Found %s at %s", fname,
    358358                incoming);
    359359    } else {
    360360        output[0] = '\0';
    361         log_msg(4, "find_home_of_exe() --- Could not find %s", fname);
     361        mr_msg(4, "find_home_of_exe() --- Could not find %s", fname);
    362362    }
    363363    mr_free(incoming);
     
    462462        *p = '\0';
    463463    }
    464 //  log_msg(2, "lastline='%s', ", p, lastline);
     464//  mr_msg(2, "lastline='%s', ", p, lastline);
    465465    if (!p) {
    466466        return (0);
     
    789789    strcpy(sz_res, call_program_and_get_last_line_of_output(command));
    790790    file_len_K = atol(sz_res);
    791     log_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K);
     791    mr_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K);
    792792    return (file_len_K);
    793793}
     
    828828            ("Cannot open biggielist. OK, so estimate is based on filesets only.");
    829829    } else {
    830         log_msg(4, "Reading it...");
     830        mr_msg(4, "Reading it...");
    831831        for (fgets(fname, MAX_STR_LEN, fin); !feof(fin);
    832832             fgets(fname, MAX_STR_LEN, fin)) {
     
    853853            if (file_len_K > 0) {
    854854                scratchL += file_len_K;
    855                 log_msg(4, "%s --> %ld K", fname, file_len_K);
     855                mr_msg(4, "%s --> %ld K", fname, file_len_K);
    856856            }
    857857            sprintf(comment,
    858858                    "After adding %s, scratchL+%ld now equals %ld", fname,
    859859                    file_len_K, scratchL);
    860             log_msg(4, comment);
     860            mr_msg(4, comment);
    861861            if (feof(fin)) {
    862862                break;
     
    10741074                        "Copying Mondo's core files to the scratch directory");
    10751075
    1076     log_msg(4, "g_mondo_home='%s'", g_mondo_home);
     1076    mr_msg(4, "g_mondo_home='%s'", g_mondo_home);
    10771077    if (strlen(g_mondo_home) < 2) {
    10781078        find_and_store_mondoarchives_home(g_mondo_home);
     
    10811081            bkpinfo->scratchdir);
    10821082
    1083     log_msg(4, "command = %s", command);
     1083    mr_msg(4, "command = %s", command);
    10841084    if (run_program_and_log_output(command, 1)) {
    10851085        fatal_error("Failed to copy Mondo's stuff to scratchdir");
     
    13931393                "#!/bin/sh\n\nmount /boot > /dev/null 2> /dev/null\ngrub-install $@\nres=$?\nsync;sync;sync\nexit $res\n");
    13941394        paranoid_fclose(fout);
    1395         log_msg(2, "Created %s", outfile);
     1395        mr_msg(2, "Created %s", outfile);
    13961396        sprintf(tmp, "chmod +x %s", outfile);
    13971397        paranoid_system(tmp);
Note: See TracChangeset for help on using the changeset viewer.