summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2016-02-03 11:22:52 +0100
committerMichal Sekletar <msekleta@redhat.com>2016-02-03 13:54:24 +0100
commit485fd9a7b9d59b9f2302a873f7ee5ccac256dd93 (patch)
treee46e9e21a41b142c0d3c61a001e436746abac900 /src
parent264a58110ebb29b4db191ddf964b362c18d43087 (diff)
journalctl: add match for the current boot when called with devpath
Diffstat (limited to 'src')
-rw-r--r--src/journal/journalctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index cf359d20ca..bdfe7e8750 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -218,6 +218,10 @@ static int add_matches_for_device(sd_journal *j, const char *devpath) {
d = udev_device_get_parent(d);
}
+ 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;
}