Changeset 1872 in MondoRescue for branches


Ignore:
Timestamp:
Jan 21, 2008, 7:10:56 PM (16 years ago)
Author:
Bruno Cornec
Message:

Adds the possibility to increase debug level at restore time with a -K option

Location:
branches/2.2.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo-doc/mondorestore.8

    r1691 r1872  
    2525
    2626.SH SYNOPSIS
    27 .B mondorestore [-p prefix]
     27.B mondorestore [-p prefix][-K loglevel]
    2828: restore your PC
    2929
     
    5050.B mondorestore
    5151will use images named machine-1.iso, machine-2.iso, ...
     52
     53.TP
     54.BI "-K " "loglevel"
     55Specify the loglevel. Use 99 for full debug. Standard debug level is 4.
    5256
    5357.SH DIAGNOSTICS
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore.c

    r1870 r1872  
    31153115    }
    31163116
     3117    if (argc == 3 && strcmp(argv[1], "-K") == 0) {
     3118        g_loglevel = atoi(argv[2]);
     3119        log_msg(1,"Loglevel forced to %s",g_loglevel);
     3120    }
    31173121
    31183122    if (argc == 2 && strcmp(argv[1], "--live-grub") == 0) {
Note: See TracChangeset for help on using the changeset viewer.