Explorar el Código

Set logmask from commandline.

master
Richard Nyberg hace 15 años
padre
commit
74feed32d6
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +4
    -0
      btpd/main.c
  2. +0
    -4
      btpd/opts.c

+ 4
- 0
btpd/main.c Ver fichero

@@ -177,6 +177,7 @@ static struct option longopts[] = {
{ "ipcprot", required_argument, &longval, 8 },
{ "empty-start", no_argument, &longval, 9 },
{ "ip", required_argument, &longval, 10 },
{ "logmask", required_argument, &longval, 11 },
{ "help", no_argument, &longval, 128 },
{ NULL, 0, NULL, 0 }
};
@@ -235,6 +236,9 @@ main(int argc, char **argv)
case 10:
tr_ip_arg = optarg;
break;
case 11:
btpd_logmask = atoi(optarg);
break;
default:
usage();
}


+ 0
- 4
btpd/opts.c Ver fichero

@@ -1,11 +1,7 @@
#include "btpd.h"

const char *btpd_dir;
#ifdef DEBUG
uint32_t btpd_logmask = BTPD_L_ALL;
#else
uint32_t btpd_logmask = BTPD_L_BTPD | BTPD_L_ERROR;
#endif
int net_max_uploads = -2;
unsigned net_max_peers;
unsigned net_bw_limit_in;


Cargando…
Cancelar
Guardar