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/mondo-cli.c

    r1080 r1108  
    109109    {
    110110*/
    111     log_msg(3, "Switches:-");
     111    mr_msg(3, "Switches:-");
    112112    for (i = 0; i < 128; i++) {
    113113        if (flag_set[i]) {
    114114            sprintf(tmp, "-%c %s", i, flag_val[i]);
    115             log_msg(3, tmp);
     115            mr_msg(3, tmp);
    116116        }
    117117    }
     
    162162        sprintf(comment, "media_size[%d] = %ld", j,
    163163                bkpinfo->media_size[j]);
    164         log_msg(3, comment);
     164        mr_msg(3, comment);
    165165    }
    166166    for (; j <= MAX_NOOF_MEDIA; j++) {
     
    170170    for (j = 1; j <= MAX_NOOF_MEDIA; j++) {
    171171        if (bkpinfo->media_size[j] <= 0) {
    172             log_msg(1, "You gave media #%d an invalid size\n", j);
     172            mr_msg(1, "You gave media #%d an invalid size\n", j);
    173173            return (-1);
    174174        }
     
    253253        if (find_home_of_exe("star")) {
    254254            flag_set['R'] = TRUE;
    255             log_msg(1, "Using star instead of afio");
     255            mr_msg(1, "Using star instead of afio");
    256256        } else {
    257257            fatal_error
     
    284284    if (flag_set['I']) {
    285285        if (!strcmp(bkpinfo->include_paths, "/")) {
    286             log_msg(2, "'/' is pleonastic.");
     286            mr_msg(2, "'/' is pleonastic.");
    287287            bkpinfo->include_paths[0] = '\0';
    288288        }
     
    300300                *q = '\0';
    301301                if (stat(p, &buf) != 0) {
    302                     log_msg(1, "ERROR ! %s doesn't exist", p);
     302                    mr_msg(1, "ERROR ! %s doesn't exist", p);
    303303                    fatal_error("ERROR ! You specified a directory to include which doesn't exist");
    304304                }
     
    306306            } else {
    307307                if (stat(p, &buf) != 0) {
    308                     log_msg(1, "ERROR ! %s doesn't exist", p);
     308                    mr_msg(1, "ERROR ! %s doesn't exist", p);
    309309                    fatal_error("ERROR ! You specified a directory to include which doesn't exist");
    310310                }
     
    317317                flag_val['I'],
    318318                4*MAX_STR_LEN - strlen(bkpinfo->include_paths));
    319         log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths);
     319        mr_msg(1, "include_paths is now '%s'", bkpinfo->include_paths);
    320320        if (bkpinfo->include_paths[0] == '-') {
    321321            retval++;
     
    374374            }
    375375        } else {
    376             log_msg(3, "flag_val['c'] = %s", flag_val['c']);
    377             log_msg(3, "flag_val['w'] = %s", flag_val['w']);
    378 //    log_msg(3, "flag_set['r'] = %i", flag_set['r'] );
     376            mr_msg(3, "flag_val['c'] = %s", flag_val['c']);
     377            mr_msg(3, "flag_val['w'] = %s", flag_val['w']);
     378//    mr_msg(3, "flag_set['r'] = %i", flag_set['r'] );
    379379            if (flag_set['c']) {
    380380                bkpinfo->cdrw_speed = atoi(flag_val['c']);
     
    502502            log_to_screen("NFS share is not mounted. Please mount it.\n");
    503503        }
    504         log_msg(3, "mount = %s", bkpinfo->nfs_mount);
    505         log_msg(3, "isodir= %s", bkpinfo->isodir);
     504        mr_msg(3, "mount = %s", bkpinfo->nfs_mount);
     505        mr_msg(3, "isodir= %s", bkpinfo->isodir);
    506506    }
    507507    if (flag_set['c']) {
     
    568568                /* End of bug fix */
    569569                if (stat(p, &buf) != 0) {
    570                     log_msg(1, "WARNING ! %s doesn't exist", p);
     570                    mr_msg(1, "WARNING ! %s doesn't exist", p);
    571571                }
    572572                p = q+1 ;
    573573            } else {
    574574                if (stat(p, &buf) != 0) {
    575                     log_msg(1, "WARNING ! %s doesn't exist", p);
     575                    mr_msg(1, "WARNING ! %s doesn't exist", p);
    576576                }
    577577                p = NULL;
     
    595595        }
    596596        strncat(bkpinfo->exclude_paths, psz, MAX_STR_LEN);
    597         log_msg(3, "-N means we're now excluding %s",
     597        mr_msg(3, "-N means we're now excluding %s",
    598598                bkpinfo->exclude_paths);
    599599    }
     
    604604    if (flag_set['b']) {
    605605        strcpy(psz, flag_val['b']);
    606         log_msg(1, "psz = '%s'", psz);
     606        mr_msg(1, "psz = '%s'", psz);
    607607        if (psz[strlen(psz) - 1] == 'k') {
    608608            psz[strlen(psz) - 1] = '\0';
     
    611611            itbs = atol(psz);
    612612        }
    613         log_msg(1, "'%s' --> %ld", flag_val['b'], itbs);
    614         log_msg(1, "Internal tape block size is now %ld bytes", itbs);
     613        mr_msg(1, "'%s' --> %ld", flag_val['b'], itbs);
     614        mr_msg(1, "Internal tape block size is now %ld bytes", itbs);
    615615        if (itbs % 512 != 0 || itbs < 256 || itbs > 1024L * 1024) {
    616616            fatal_error
     
    761761            (BOOT_LOADER_CHARS,
    762762             (bkpinfo->boot_loader = flag_val['l'][0]))) {
    763             log_msg(1, "%c? WTF is %c? I need G, L, E or R.",
     763            mr_msg(1, "%c? WTF is %c? I need G, L, E or R.",
    764764                    bkpinfo->boot_loader, bkpinfo->boot_loader);
    765765            fatal_error
     
    779779    if (flag_set['Q']) {
    780780        i = which_boot_loader(tmp);
    781         log_msg(3, "boot loader is %c, residing at %s", i, tmp);
     781        mr_msg(3, "boot loader is %c, residing at %s", i, tmp);
    782782        printf("boot loader is %c, residing at %s\n", i, tmp);
    783783        finish(0);
     
    948948void help_screen()
    949949{
    950     log_msg(1, "Type 'man mondo-archive' for more information\n");
     950    mr_msg(1, "Type 'man mondo-archive' for more information\n");
    951951    exit(1);
    952952}
     
    10441044void termination_in_progress(int sig)
    10451045{
    1046     log_msg(1, "Termination in progress");
     1046    mr_msg(1, "Termination in progress");
    10471047    usleep(1000);
    10481048    pthread_exit(0);
Note: See TracChangeset for help on using the changeset viewer.