projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
264a581
)
journalctl: add match for the current boot when called with devpath
author
Michal Sekletar
<msekleta@redhat.com>
Wed, 3 Feb 2016 10:22:52 +0000
(11:22 +0100)
committer
Michal Sekletar
<msekleta@redhat.com>
Wed, 3 Feb 2016 12:54:24 +0000
(13:54 +0100)
src/journal/journalctl.c
patch
|
blob
|
history
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index
cf359d2
..
bdfe7e8
100644
(file)
--- 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;
}