Changeset 1625 in MondoRescue for branches/stable/mondo/src/mondoarchive


Ignore:
Timestamp:
Sep 9, 2007, 1:00:49 AM (18 years ago)
Author:
Bruno Cornec
Message:

remove g_loglevel and replaced with mr_conf->log_level

Location:
branches/stable/mondo/src/mondoarchive
Files:
2 edited

Legend:

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

    r1609 r1625  
    1919#include "mr_msg.h"
    2020#include "mr_gettext.h"
     21#include "mr_conf.h"
    2122
    2223//static char cvsid[] = "$Id$";
    2324
    24 extern int g_loglevel;
    2525extern bool g_text_mode;
    2626extern char g_startdir[MAX_STR_LEN];    ///< ????? @bug ?????
     
    2828extern char g_tmpfs_mountpt[MAX_STR_LEN];
    2929extern bool g_sigpipe;
     30
     31extern struct mr_ar_conf *mr_conf = NULL;
    3032
    3133/*@ file pointer **************************************************/
     
    220222    }
    221223    if (flag_set['K']) {
    222         g_loglevel = atoi(flag_val['K']);
    223         if (g_loglevel < 3) {
    224             g_loglevel = 3;
     224        mr_conf->log_level = atoi(flag_val['K']);
     225        if (mr_conf->log_level < 3) {
     226            mr_conf->log_level = 3;
    225227        }
    226228    }
  • branches/stable/mondo/src/mondoarchive/mondoarchive.c

    r1594 r1625  
    4949extern char *g_magicdev_command;
    5050extern t_bkptype g_backup_media_type;
    51 extern int g_loglevel;
    5251
    5352extern char *get_uname_m(void);
     
    501500
    502501    if (argc == 4 && !strcmp(argv[1], "getfattr")) {
    503         g_loglevel = 10;
     502        mr_conf->log_level = 10;
    504503        g_text_mode = TRUE;
    505504        setup_newt_stuff();
     
    513512    }
    514513    if (argc == 4 && !strcmp(argv[1], "setfattr")) {
    515         g_loglevel = 10;
     514        mr_conf->log_level = 10;
    516515        g_text_mode = TRUE;
    517516        setup_newt_stuff();
     
    520519
    521520    if (argc == 3 && !strcmp(argv[1], "wildcards")) {
    522         g_loglevel = 10;
     521        mr_conf->log_level = 10;
    523522        g_text_mode = TRUE;
    524523        setup_newt_stuff();
     
    530529
    531530    if (argc == 4 && !strcmp(argv[1], "getfacl")) {
    532         g_loglevel = 10;
     531        mr_conf->log_level = 10;
    533532        g_text_mode = TRUE;
    534533        setup_newt_stuff();
     
    542541    }
    543542    if (argc == 4 && !strcmp(argv[1], "setfacl")) {
    544         g_loglevel = 10;
     543        mr_conf->log_level = 10;
    545544        g_text_mode = TRUE;
    546545        setup_newt_stuff();
     
    549548
    550549    if (argc > 2 && !strcmp(argv[1], "find-cd")) {
    551         g_loglevel = 10;
     550        mr_conf->log_level = 10;
    552551        g_text_mode = TRUE;
    553552        setup_newt_stuff();
     
    569568
    570569    if (argc > 2 && !strcmp(argv[1], "find-dvd")) {
    571         g_loglevel = 10;
     570        mr_conf->log_level = 10;
    572571        g_text_mode = TRUE;
    573572        setup_newt_stuff();
Note: See TracChangeset for help on using the changeset viewer.