Commit c2daba1f authored by baujc's avatar baujc

Small code optimization in diag.c

parent 136a5ddc
......@@ -26,11 +26,13 @@ void __pp_diag(struct pp_instance *ppi, enum pp_diag_things th,
int level, char *fmt, ...)
{
va_list args;
char *name = ppi ? ppi->port_name : "ppsi";
char *name;
if (!__PP_DIAG_ALLOW(ppi, th, level))
return;
name = ppi ? ppi->port_name : "ppsi";
/* Use the normal output channel for diagnostics */
if (PP_DIAG_EXTRA_PRINT_TIME) {
int hours, minutes, seconds;
......
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