[bgp/dump_isolario.c] Respect withColors

This commit is contained in:
Lorenzo Cogotti 2021-08-06 01:27:13 +02:00
parent cb3fa6e427
commit 73691101ce
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}