summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-01-16 02:10:48 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2018-01-17 23:16:16 +0000
commitc4759885d7c2aedf310739d9a2420ae1d67a0338 (patch)
treee4d0332f27f99a02a75c75d7dbcff732ad0051cd /tests
parent23d3161d4bbe80da13bf3e7afb64242dc8b7236c (diff)
cosmetic: logging: if color is disabled, don't print ""
If color output is disabled, skip the empty snprintf() to (not) clear the ANSI color. Also, no need to use a format string of "%s", just pass the string constant directly. That is a micro optimisation as well as clarification of the code. Change-Id: Ie7cb06de160830d2f8ee5718246c0fe311f68d49
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions