]> www.infradead.org Git - users/sagi/libnvme.git/commit
log: Respect DEFAULT_LOGLEVEL on uninitialized logging
authorTomas Bzatek <tbzatek@redhat.com>
Thu, 15 Feb 2024 14:21:20 +0000 (09:21 -0500)
committerDaniel Wagner <wagi@monom.org>
Wed, 6 Mar 2024 09:56:14 +0000 (10:56 +0100)
commitd706ff266b45d1c17522d3c54a026fdab13fe346
tree71e0096ef3b0e70c1336186845b1c6a91be53412
parentb9cab28a599cb1ae1a85d37442a89c730dd6fe05
log: Respect DEFAULT_LOGLEVEL on uninitialized logging

When logging has not been initialized and no root available,
logging via nvme_msg() would just print everything. Better
to check against DEFAULT_LOGLEVEL in such cases.

Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
src/nvme/log.c