mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-12 21:57:27 +03:00
logs-show: fix indentation for 2nd and later lines, show lines in full
Now --full will show long fields in full, like it already did with --all.
This commit is contained in:
parent
94e0bd7db1
commit
b4b02cbeec
@ -135,9 +135,13 @@ static bool print_multiline(FILE *f, unsigned prefix, unsigned n_columns, Output
|
||||
e = ellipsize_mem(pos, len, n_columns - prefix, 90);
|
||||
|
||||
if (!e)
|
||||
fprintf(f, "%s%.*s%s\n", color_on, len, pos, color_off);
|
||||
fprintf(f, "%*s%s%.*s%s\n",
|
||||
continuation * prefix, "",
|
||||
color_on, len, pos, color_off);
|
||||
else
|
||||
fprintf(f, "%s%s%s\n", color_on, e, color_off);
|
||||
fprintf(f, "%*s%s%s%s\n",
|
||||
continuation * prefix, "",
|
||||
color_on, e, color_off);
|
||||
} else {
|
||||
ellipsized = true;
|
||||
fputs("...\n", f);
|
||||
@ -168,7 +172,7 @@ static int output_short(
|
||||
assert(f);
|
||||
assert(j);
|
||||
|
||||
sd_journal_set_data_threshold(j, flags & OUTPUT_SHOW_ALL ? 0 : PRINT_THRESHOLD);
|
||||
sd_journal_set_data_threshold(j, flags & (OUTPUT_SHOW_ALL|OUTPUT_FULL_WIDTH) ? 0 : PRINT_THRESHOLD);
|
||||
|
||||
JOURNAL_FOREACH_DATA_RETVAL(j, data, length, r) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user