summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-03 16:26:21 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-03 16:26:21 +0100
commita92ff4003f693c0f6a8bb8be844b9c1692add71b (patch)
tree89e5bb4d28e9ef6a0d538791207413af82d18a33 /src/journal
parent5508e4f2180d0f2e25843d85f74a31d7b643e400 (diff)
parent3cea8e06e45fc1757de8f74da29fb5fb181db4eb (diff)
Merge pull request #2519 from msekletar/journalctl-device-log-current-boot-v2
journalctl: add match for the current boot when called with devpath (v2)
Diffstat (limited to 'src/journal')
-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 38fb43970e..20f7082175 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -220,6 +220,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;
}