diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-16 02:10:48 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-01-17 23:16:16 +0000 |
commit | c4759885d7c2aedf310739d9a2420ae1d67a0338 (patch) | |
tree | e4d0332f27f99a02a75c75d7dbcff732ad0051cd /.gitreview | |
parent | 23d3161d4bbe80da13bf3e7afb64242dc8b7236c (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 '.gitreview')
0 files changed, 0 insertions, 0 deletions