Maintenance scheduled 24th July -- expect downtime along that day

Commit 31c0e23b authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrpc: remove uart-sw and hack to use it

It was by me fore me, and I'm not using it. Simplify.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 325a2774
......@@ -101,7 +101,6 @@ int wrc_ptp_init()
{
sdb_find_devices();
uart_init_hw();
uart_init_sw();
pp_printf("PPSi for WRPC. Commit %s, built on " __DATE__ "\n",
PPSI_VERSION);
......
......@@ -31,32 +31,11 @@ void __pp_diag(struct pp_instance *ppi, enum pp_diag_things th,
if (!__PP_DIAG_ALLOW(ppi, th, level))
return;
#ifdef DIAG_PUTS
/*
* We allow to divert diagnostic messages to a different
* channel. This is done in wrpc-sw, for example. There, we
* have a FIFO buffer to this aim. This allows running the
* wrpc shell on the only physical uart we have.
*/
{
static char buf[128];
extern int DIAG_PUTS(const char *s);
pp_sprintf(buf, "%s-%i-%s: ",
thing_name[th], level, name);
DIAG_PUTS(buf);
va_start(args, fmt);
pp_vsprintf(buf, fmt, args);
va_end(args);
DIAG_PUTS(buf);
}
#else
/* Use the normal output channel for diagnostics */
pp_printf("%s-%i-%s: ", thing_name[th], level, name);
va_start(args, fmt);
pp_vprintf(fmt, args);
va_end(args);
#endif
}
unsigned long pp_diag_parse(char *diaglevel)
......
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