Ignore:
Timestamp:
Feb 8, 2007, 12:10:16 AM (13 years ago)
Author:
Bruno Cornec
Message:

log_msg => mr_msg for main files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondoarchive/main.c

    r1102 r1108  
    6161void welcome_to_mondoarchive()
    6262{
    63     log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org",
     63    mr_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org",
    6464            PACKAGE_VERSION);
    65     log_msg(0, "running on %s architecture", get_architecture());
    66     log_msg(0,
     65    mr_msg(0, "running on %s architecture", get_architecture());
     66    mr_msg(0,
    6767            "-----------------------------------------------------------");
    68     log_msg(0,
     68    mr_msg(0,
    6969            "NB: Mondo logs almost everything, so don't panic if you see");
    70     log_msg(0,
     70    mr_msg(0,
    7171            "some error messages.  Please read them carefully before you");
    72     log_msg(0,
     72    mr_msg(0,
    7373            "decide to break out in a cold sweat.    Despite (or perhaps");
    74     log_msg(0,
     74    mr_msg(0,
    7575            "because of) the wealth of messages. some users are inclined");
    76     log_msg(0,
     76    mr_msg(0,
    7777            "to stop reading this log. If Mondo stopped for some reason,");
    78     log_msg(0,
     78    mr_msg(0,
    7979            "chances are it's detailed here.  More than likely there's a");
    80     log_msg(0,
     80    mr_msg(0,
    8181            "message at the very end of this log that will tell you what");
    82     log_msg(0,
     82    mr_msg(0,
    8383            "is wrong. Please read it!                          -Devteam");
    84     log_msg(0,
     84    mr_msg(0,
    8585            "-----------------------------------------------------------");
    8686
    87     log_msg(0, "Zero...");
    88     log_msg(1, "One...");
    89     log_msg(2, "Two...");
    90     log_msg(3, "Three...");
    91     log_msg(4, "Four...");
    92     log_msg(5, "Five...");
    93     log_msg(6, "Six...");
    94     log_msg(7, "Seven...");
    95     log_msg(8, "Eight...");
     87    mr_msg(0, "Zero...");
     88    mr_msg(1, "One...");
     89    mr_msg(2, "Two...");
     90    mr_msg(3, "Three...");
     91    mr_msg(4, "Four...");
     92    mr_msg(5, "Five...");
     93    mr_msg(6, "Six...");
     94    mr_msg(7, "Seven...");
     95    mr_msg(8, "Eight...");
    9696    printf("See %s for details of backup run.\n", MONDO_LOGFILE);
    9797}
     
    106106void distro_specific_kludges_at_start_of_mondoarchive()
    107107{
    108     log_msg(2, "Unmounting old ramdisks if necessary");
     108    mr_msg(2, "Unmounting old ramdisks if necessary");
    109109    stop_magicdev_if_necessary();   // for RH+Gnome users
    110110    run_program_and_log_output
     
    124124{
    125125//  char tmp[500];
    126     log_msg(2, "Restarting magicdev if necessary");
     126    mr_msg(2, "Restarting magicdev if necessary");
    127127    sync();
    128128    restart_magicdev_if_necessary();    // for RH+Gnome users
    129129
    130     log_msg(2, "Restarting autofs if necessary");
     130    mr_msg(2, "Restarting autofs if necessary");
    131131    sync();
    132132    //  restart_autofs_if_necessary(); // for Xandros users
    133133
    134     log_msg(2, "Restarting supermounts if necessary");
     134    mr_msg(2, "Restarting supermounts if necessary");
    135135    sync();
    136136    remount_supermounts_if_necessary(); // for Mandrake users
    137137
    138     log_msg(2, "Unmounting /boot if necessary");
     138    mr_msg(2, "Unmounting /boot if necessary");
    139139    sync();
    140140    unmount_boot_if_necessary();    // for Gentoo users
    141141
    142 //  log_msg( 2, "Cleaning up KDE desktop");
     142//  mr_msg( 2, "Cleaning up KDE desktop");
    143143//  clean_up_KDE_desktop_if_necessary();
    144144}
     
    189189    /* initialize log file with time stamp */
    190190    unlink(MONDO_LOGFILE);
    191     log_msg(0, "Time started: %s", mr_date());
     191    mr_msg(0, "Time started: %s", mr_date());
    192192
    193193    /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */
     
    215215    /* Configure the bkpinfo structure, global file paths, etc. */
    216216    g_main_pid = getpid();
    217     log_msg(9, "This");
     217    mr_msg(9, "This");
    218218
    219219    register_pid(g_main_pid, "mondo");
     
    221221    run_program_and_log_output("dmesg -n1", TRUE);
    222222
    223     log_msg(9, "Next");
     223    mr_msg(9, "Next");
    224224    welcome_to_mondoarchive();
    225225    distro_specific_kludges_at_start_of_mondoarchive();
     
    340340                ("Errors were detected in the command line you supplied.\n");
    341341            printf("Please review the log file - " MONDO_LOGFILE "\n");
    342             log_msg(1, "Mondoarchive will now exit.");
     342            mr_msg(1, "Mondoarchive will now exit.");
    343343            finish(1);
    344344        }
     
    410410                ("Type 'less /tmp/changed.files' to see which files don't match the archives");
    411411        } else {
    412             log_msg(1,
     412            mr_msg(1,
    413413                    "Type 'less /tmp/changed.files' to see which files don't match the archives");
    414             log_msg(2, "Calling popup_changelist_from_file()");
     414            mr_msg(2, "Calling popup_changelist_from_file()");
    415415            popup_changelist_from_file("/tmp/changed.files");
    416             log_msg(2, "Returned from popup_changelist_from_file()");
     416            mr_msg(2, "Returned from popup_changelist_from_file()");
    417417        }
    418418    } else {
     
    447447
    448448    if (!g_cdrom_drive_is_here) {
    449         log_msg(10, "FYI, g_cdrom_drive_is_here was never used");
     449        mr_msg(10, "FYI, g_cdrom_drive_is_here was never used");
    450450    }
    451451    if (!g_dvd_drive_is_here) {
    452         log_msg(10, "FYI, g_dvd_drive_is_here was never used");
     452        mr_msg(10, "FYI, g_dvd_drive_is_here was never used");
    453453    }
    454454
    455455    /* finalize log file with time stamp */
    456     log_msg(0, "Time finished: %s", mr_date());
     456    mr_msg(0, "Time finished: %s", mr_date());
    457457
    458458    if (!g_text_mode) {
Note: See TracChangeset for help on using the changeset viewer.