Ignore:
Timestamp:
Aug 21, 2009, 1:53:49 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • New compiler flogs introduce for memory check
  • Other dyn. allocation added replacing static ones
  • Option -Y is added for LZMA support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c

    r2325 r2340  
    3636extern t_bkptype g_backup_media_type;
    3737extern int g_loglevel;
     38extern char *g_magicdev_command;
    3839
    3940/**
     
    7172    char *tmp = NULL;
    7273
    73     log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org",
    74             PACKAGE_VERSION);
     74    log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org", PACKAGE_VERSION);
    7575    log_msg(0, "running %s binaries", get_architecture());
    7676    tmp = get_uname_m();
    7777    log_msg(0, "running on %s architecture", tmp);
    7878    mr_free(tmp);
    79     log_msg(0,
    80             "-----------------------------------------------------------");
    81     log_msg(0,
    82             "NB: Mondo logs almost everything, so don't panic if you see");
    83     log_msg(0,
    84             "some error messages.  Please read them carefully before you");
    85     log_msg(0,
    86             "decide to break out in a cold sweat.    Despite (or perhaps");
    87     log_msg(0,
    88             "because of) the wealth of messages. some users are inclined");
    89     log_msg(0,
    90             "to stop reading this log. If Mondo stopped for some reason,");
    91     log_msg(0,
    92             "chances are it's detailed here.  More than likely there's a");
    93     log_msg(0,
    94             "message at the very end of this log that will tell you what");
    95     log_msg(0,
    96             "is wrong. Please read it!                          -Devteam");
    97     log_msg(0,
    98             "-----------------------------------------------------------");
     79    log_msg(0, "-----------------------------------------------------------");
     80    log_msg(0, "NB: Mondo logs almost everything, so don't panic if you see");
     81    log_msg(0, "some error messages.  Please read them carefully before you");
     82    log_msg(0, "decide to break out in a cold sweat.    Despite (or perhaps");
     83    log_msg(0, "because of) the wealth of messages. some users are inclined");
     84    log_msg(0, "to stop reading this log. If Mondo stopped for some reason,");
     85    log_msg(0, "chances are it's detailed here.  More than likely there's a");
     86    log_msg(0, "message at the very end of this log that will tell you what");
     87    log_msg(0, "is wrong. Please read it!                          -Devteam");
     88    log_msg(0, "-----------------------------------------------------------");
    9989
    10090    log_msg(0, "Zero...");
     
    10797    log_msg(7, "Seven...");
    10898    log_msg(8, "Eight...");
    109     printf("See %s for details of backup run.\n", MONDO_LOGFILE);
    11099}
    111100
    112 
    113 extern char *g_magicdev_command;
    114101
    115102/**
     
    174161    printf("Initializing...\n");
    175162
    176     bkpinfo = (struct s_bkpinfo *)mr_malloc(sizeof(struct s_bkpinfo));
    177163    init_bkpinfo();
    178164
     
    316302
    317303    if (pre_param_configuration()) {
    318         fatal_error
    319             ("Pre-param initialization phase failed. Please review the error messages above, make the specified changes, then try again. Exiting...");
    320     }
    321 
    322 /* Process command line, if there is one. If not, ask user for info. */
     304        fatal_error("Pre-param initialization phase failed. Please review the error messages above, make the specified changes, then try again. Exiting...");
     305    }
     306
     307    /* Process command line, if there is one. If not, ask user for info. */
    323308    if (argc == 1) {
    324309        res = interactively_obtain_media_parameters_from_user(TRUE);    /* yes, archiving */
    325310        if (res) {
    326             fatal_error
    327                 ("Syntax error. Please review the parameters you have supplied and try again.");
     311            fatal_error("Syntax error. Please review the parameters you have supplied and try again.");
    328312        }
    329313    } else {
    330314        res = handle_incoming_parameters(argc, argv);
    331315        if (res) {
    332             printf
    333                 ("Errors were detected in the command line you supplied.\n");
     316            printf("Errors were detected in the command line you supplied.\n");
    334317            printf("Please review the log file - %s\n", MONDO_LOGFILE );
    335318            log_msg(1, "Mondoarchive will now exit.");
Note: See TracChangeset for help on using the changeset viewer.