]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
logging: fix get_log_group()
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 8 Jul 2021 11:30:22 +0000 (13:30 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 29 Jul 2021 09:42:33 +0000 (11:42 +0200)
commit56dcbd50e1b6c9133b0d222d97c2d49cb91b935a
treee54ae5189467ca86c08ac916b40df90db3e97caf
parent3dcd816b4fa3414d8d5b39395faf7328b418fc8f
logging: fix get_log_group()

To ensure all log groups have been properly defined, iterate over the
entire enum. If a value is missing, assert will be triggered.

Also fixes groups with number >=32 (32bit value was used to test
whether group is set before).
daemon/engine.c
lib/log.c
lib/log.h