]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mute-console: honor Context rather than arg_*
authorMike Yuan <me@yhndnzj.com>
Mon, 6 Oct 2025 20:34:42 +0000 (22:34 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 7 Oct 2025 11:38:21 +0000 (13:38 +0200)
src/mute-console/mute-console.c

index 568b05cbd12b45629ea78d4f1bda73f0ec032ca5..a5bb4cce61a718ee2d5717a30f9a275c5f6297f3 100644 (file)
@@ -185,7 +185,7 @@ static int mute_kernel(Context *c) {
 
         assert(c);
 
-        if (!arg_mute_kernel) {
+        if (!c->mute_kernel) {
                 log_debug("Muting of kernel printk() console output disabled.");
                 c->saved_kernel = -1;
                 return 0;