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 <>
parent 19a1a285
* This work is part of the White Rabbit project
* Copyright (C) 2012 GSI (
* Author: Wesley W. Terpstra <>
* Released according to the GNU GPL, version 2 or any later version.
#include <wrc.h>
#include <shell.h>
extern int pp_diag_verbosity;
#include <ppsi/ppsi.h>
static int cmd_verbose(const char *args[])
int v;
v = args[0][0] - '0';
if (v < 0)
v = 0;
else if (v > 2)
v = 2;
pp_printf("PPSI verbosity set to %d\n", v);
pp_diag_verbosity = v;
if (args[0])
pp_global_flags = pp_diag_parse((char *)args[0]);
pp_printf("PPSI verbosity: %08lx\n", pp_global_flags);
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