]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: fix --prio-prefix doesn't use --priority default
authorKarel Zak <kzak@redhat.com>
Thu, 16 Sep 2021 10:20:25 +0000 (12:20 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 16 Sep 2021 10:20:25 +0000 (12:20 +0200)
commit02f859392754038f383dabeb32effec4ae1f02ba
tree2156a528c42ae823a50f715151eb4fd515708fd5
parent4ba84b0aed7869005f2add18e04632271a171eb3
logger: fix --prio-prefix doesn't use --priority default

The commit b9ef27f have added priority check, but it introduced
regression as the default priority (as specified by --priority) is
ignored.

This patch fixes this problem, but it also removes extra check for
"kern facility", it's unnecessary and inconsistent with the rest of
logger.

Fixes: https://github.com/karelzak/util-linux/issues/1450
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c