diff options
author | Sam James <sam@gentoo.org> | 2023-12-15 02:31:45 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-15 02:32:10 +0000 |
commit | c74e7cf4220c1f0d398f2e60f33b1cf8e83d521a (patch) | |
tree | f008db107f2f0e277491c6b564cb27c36b949c25 /sys-apps/irqbalance/files | |
parent | app-office/denaro: drop old 2023.9.2 (diff) | |
download | gentoo-c74e7cf4220c1f0d398f2e60f33b1cf8e83d521a.tar.gz gentoo-c74e7cf4220c1f0d398f2e60f33b1cf8e83d521a.tar.bz2 gentoo-c74e7cf4220c1f0d398f2e60f33b1cf8e83d521a.zip |
sys-apps/irqbalance: backport fix for systemd journal noise
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/irqbalance/files')
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch b/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch new file mode 100644 index 000000000000..7cf465f62e7d --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch @@ -0,0 +1,21 @@ +https://github.com/Irqbalance/irqbalance/issues/281 +https://github.com/Irqbalance/irqbalance/commit/f3282f4ddc10be44e6c423de6de8db600f748f85 + +From f3282f4ddc10be44e6c423de6de8db600f748f85 Mon Sep 17 00:00:00 2001 +From: Neil Horman <nhorman@openssl.org> +Date: Thu, 30 Nov 2023 16:55:30 -0500 +Subject: [PATCH] filter console only output when using journal mode + +Fixes #281 +--- a/irqbalance.h ++++ b/irqbalance.h +@@ -138,7 +138,8 @@ extern unsigned int log_mask; + #ifdef HAVE_LIBSYSTEMD + #define log(mask, lvl, fmt, args...) do { \ + if (journal_logging) { \ +- sd_journal_print(lvl, fmt, ##args); \ ++ if (log_mask & mask & TO_SYSLOG) \ ++ sd_journal_print(lvl, fmt, ##args); \ + if (log_mask & mask & TO_CONSOLE) \ + printf(fmt, ##args); \ + } else { \ |