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

log_msg => mr_msg in trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/mondoarchive/main.c

    r1081 r1086  
    5353void welcome_to_mondoarchive()
    5454{
    55     log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org",
     55    mr_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org",
    5656            PACKAGE_VERSION);
    57     log_msg(0, "running on %s architecture", get_architecture());
    58     log_msg(0,
     57    mr_msg(0, "running on %s architecture", get_architecture());
     58    mr_msg(0,
    5959            "-----------------------------------------------------------");
    60     log_msg(0,
     60    mr_msg(0,
    6161            "NB: Mondo logs almost everything, so don't panic if you see");
    62     log_msg(0,
     62    mr_msg(0,
    6363            "some error messages.  Please read them carefully before you");
    64     log_msg(0,
     64    mr_msg(0,
    6565            "decide to break out in a cold sweat.    Despite (or perhaps");
    66     log_msg(0,
     66    mr_msg(0,
    6767            "because of) the wealth of messages. some users are inclined");
    68     log_msg(0,
     68    mr_msg(0,
    6969            "to stop reading this log. If Mondo stopped for some reason,");
    70     log_msg(0,
     70    mr_msg(0,
    7171            "chances are it's detailed here.  More than likely there's a");
    72     log_msg(0,
     72    mr_msg(0,
    7373            "message at the very end of this log that will tell you what");
    74     log_msg(0,
     74    mr_msg(0,
    7575            "is wrong. Please read it!                          -Devteam");
    76     log_msg(0,
     76    mr_msg(0,
    7777            "-----------------------------------------------------------");
    7878
    79     log_msg(0, "Zero...");
    80     log_msg(1, "One...");
    81     log_msg(2, "Two...");
    82     log_msg(3, "Three...");
    83     log_msg(4, "Four...");
    84     log_msg(5, "Five...");
    85     log_msg(6, "Six...");
    86     log_msg(7, "Seven...");
    87     log_msg(8, "Eight...");
     79    mr_msg(0, "Zero...");
     80    mr_msg(1, "One...");
     81    mr_msg(2, "Two...");
     82    mr_msg(3, "Three...");
     83    mr_msg(4, "Four...");
     84    mr_msg(5, "Five...");
     85    mr_msg(6, "Six...");
     86    mr_msg(7, "Seven...");
     87    mr_msg(8, "Eight...");
    8888    printf("See %s for details of backup run.\n", MONDO_LOGFILE);
    8989}
     
    9696void distro_specific_kludges_at_start_of_mondoarchive()
    9797{
    98     log_msg(2, "Unmounting old ramdisks if necessary");
     98    mr_msg(2, "Unmounting old ramdisks if necessary");
    9999    stop_magicdev_if_necessary();   // for RH+Gnome users
    100100    run_program_and_log_output
     
    111111void distro_specific_kludges_at_end_of_mondoarchive()
    112112{
    113     log_msg(2, "Restarting magicdev if necessary");
     113    mr_msg(2, "Restarting magicdev if necessary");
    114114    sync();
    115115    restart_magicdev_if_necessary();    // for RH+Gnome users
    116116
    117     log_msg(2, "Restarting supermounts if necessary");
     117    mr_msg(2, "Restarting supermounts if necessary");
    118118    sync();
    119119    remount_supermounts_if_necessary(); // for Mandrake users
    120120
    121     log_msg(2, "Unmounting /boot if necessary");
     121    mr_msg(2, "Unmounting /boot if necessary");
    122122    sync();
    123123    unmount_boot_if_necessary();    // for Gentoo users
     
    181181    /* initialize log file with time stamp */
    182182    unlink(MONDO_LOGFILE);
    183     log_msg(0, "Time started: %s", mr_date());
     183    mr_msg_init(MONDO_LOGFILE,4);
     184    mr_msg(0, "Time started: %s", mr_date());
    184185
    185186    /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */
     
    196197    /* Configure the bkpinfo structure, global file paths, etc. */
    197198    g_main_pid = getpid();
    198     log_msg(9, "This");
     199    mr_msg(9, "This");
    199200
    200201    register_pid(g_main_pid, "mondo");
     
    203204    run_program_and_log_output("dmesg -n1", TRUE);
    204205
    205     log_msg(9, "Next");
     206    mr_msg(9, "Next");
    206207    welcome_to_mondoarchive();
    207208    distro_specific_kludges_at_start_of_mondoarchive();
     
    324325                (_("Errors were detected in the command line you supplied.\n"));
    325326            printf(_("Please review the log file - %s \n"),MONDO_LOGFILE);
    326             log_msg(1, "Mondoarchive will now exit.");
     327            mr_msg(1, "Mondoarchive will now exit.");
    327328            finish(1);
    328329        }
     
    388389                (_("Type 'less /tmp/changed.files' to see which files don't match the archives"));
    389390        } else {
    390             log_msg(1,
     391            mr_msg(1,
    391392                    _("Type 'less /tmp/changed.files' to see which files don't match the archives"));
    392             log_msg(2, "Calling popup_changelist_from_file()");
     393            mr_msg(2, "Calling popup_changelist_from_file()");
    393394            popup_changelist_from_file("/tmp/changed.files");
    394             log_msg(2, "Returned from popup_changelist_from_file()");
     395            mr_msg(2, "Returned from popup_changelist_from_file()");
    395396        }
    396397    } else {
     
    431432
    432433    /* finalize log file with time stamp */
    433     log_msg(0, "Time finished: %s", mr_date());
     434    mr_msg(0, "Time finished: %s", mr_date());
    434435
    435436    if (!g_text_mode) {
Note: See TracChangeset for help on using the changeset viewer.