logs: Adapt interface in log-show.c (show_journal_by_unit)

Convert more flag arguments into one flag variable.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2012-07-17 17:20:58 +02:00
committed by Lennart Poettering
parent 25277cd7fb
commit 085d71209b
3 changed files with 13 additions and 10 deletions
+6 -1
View File
@@ -2592,8 +2592,13 @@ static void print_status_info(UnitStatusInfo *i) {
}
if (i->id && arg_transport != TRANSPORT_SSH) {
int flags = (arg_lines*OUTPUT_SHOW_ALL |
arg_follow*OUTPUT_FOLLOW |
!arg_quiet*OUTPUT_WARN_CUTOFF);
printf("\n");
show_journal_by_unit(i->id, arg_output, 0, i->inactive_exit_timestamp_monotonic, arg_lines, arg_all, arg_follow, !arg_quiet);
show_journal_by_unit(i->id, arg_output, 0,
i->inactive_exit_timestamp_monotonic,
arg_lines, flags);
}
if (i->need_daemon_reload)