summaryrefslogtreecommitdiffstats
path: root/src/journal
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-03-22 09:46:00 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-03-28 13:28:17 +0100
commitaf41f9f8adf79bd477aacbf43da4088c90a242d9 (patch)
tree20a8cc721d55f18fb1d69fcf3ce98aa528894e8d /src/journal
parenthomed: Release(): fix assertion failure (diff)
downloadsystemd-af41f9f8adf79bd477aacbf43da4088c90a242d9.tar.xz
systemd-af41f9f8adf79bd477aacbf43da4088c90a242d9.zip
journalctl-filter: use add_match_boot_id() instead of add_match_this_boot()
The function add_match_this_boot() calls sd_journal_add_conjunction(), hence, we cannot specify multiple devices in the extra match arguments, e.g., "journalctl /dev/sda /dev/sdb" shows no entry.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journalctl-filter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/journal/journalctl-filter.c b/src/journal/journalctl-filter.c
index 3129e77676..5f6118f586 100644
--- a/src/journal/journalctl-filter.c
+++ b/src/journal/journalctl-filter.c
@@ -385,11 +385,7 @@ get_parent:
break;
}
- r = add_match_this_boot(j, arg_machine);
- if (r < 0)
- return log_error_errno(r, "Failed to add match for the current boot: %m");
-
- return 0;
+ return add_match_boot_id(j, SD_ID128_NULL);
}
static int add_matches_for_path(sd_journal *j, const char *path) {