Commit 7ff210e5 authored by Alessandro Rubini's avatar Alessandro Rubini

for-ppsi: shell/cmd_verbose: use new diagnostic mask

Actually, I tried to move cmd_verbose.c to ppsi, and avoid
this dependency, but our use of --gc-sections would prevent
the code to be picked into wrc.o.

Hopefully, we won't need to touch this command any more.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 19a1a285
/* /*
* This work is part of the White Rabbit project * This work is part of the White Rabbit project
* *
* Copyright (C) 2012 GSI (www.gsi.de)
* Author: Wesley W. Terpstra <w.terpstra@gsi.de>
*
* Released according to the GNU GPL, version 2 or any later version. * Released according to the GNU GPL, version 2 or any later version.
*/ */
#include <wrc.h> #include <wrc.h>
#include <shell.h> #include <shell.h>
#include <ppsi/ppsi.h>
extern int pp_diag_verbosity;
static int cmd_verbose(const char *args[]) static int cmd_verbose(const char *args[])
{ {
int v; int v;
v = args[0][0] - '0'; v = args[0][0] - '0';
if (v < 0) if (args[0])
v = 0; pp_global_flags = pp_diag_parse((char *)args[0]);
else if (v > 2) pp_printf("PPSI verbosity: %08lx\n", pp_global_flags);
v = 2;
pp_printf("PPSI verbosity set to %d\n", v);
pp_diag_verbosity = v;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment