[bgp/dump_isolario.c] Respect withColors

pull/2/head
Lorenzo Cogotti 3 years ago
parent cb3fa6e427
commit 73691101ce

@ -438,9 +438,9 @@ static void WarnCorrupted(Stmbuf *sb, const Dumpfmtctx *ctx)
{
Bufio_Putc(sb, SEP_CHAR_BAD);
if (ctx->withColors)
Bufio_Puts(sb, CORRUPT_WARN);
else
Bufio_Puts(sb, VTSGR(VTINV) CORRUPT_WARN VTSGR(VTNOINV));
else
Bufio_Puts(sb, CORRUPT_WARN);
Bufio_Putc(sb, SEP_CHAR_BAD);
}

Loading…
Cancel
Save