journalctl: show "Reboot" markers in output only when showing local-only entries

This commit is contained in:
Lennart Poettering 2012-09-05 16:52:46 -07:00
parent 9e8a535faa
commit cd931c0a46

View file

@ -823,7 +823,6 @@ int main(int argc, char *argv[]) {
for (;;) {
for (;;) {
sd_id128_t boot_id;
int flags =
arg_show_all * OUTPUT_SHOW_ALL |
have_pager * OUTPUT_FULL_WIDTH |
@ -840,6 +839,9 @@ int main(int argc, char *argv[]) {
if (r == 0)
break;
if (!arg_merge) {
sd_id128_t boot_id;
r = sd_journal_get_monotonic_usec(j, NULL, &boot_id);
if (r >= 0) {
if (previous_boot_id_valid &&
@ -849,6 +851,7 @@ int main(int argc, char *argv[]) {
previous_boot_id = boot_id;
previous_boot_id_valid = true;
}
}
line ++;