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:
5238d9a
)
analyze: right-align exit status column
author
Lennart Poettering
<lennart@poettering.net>
Mon, 29 Jul 2019 17:22:34 +0000
(19:22 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 29 Jul 2019 17:22:34 +0000
(19:22 +0200)
src/analyze/analyze.c
patch
|
blob
|
history
diff --git
a/src/analyze/analyze.c
b/src/analyze/analyze.c
index
1785e2e
..
f7e0843
100644
(file)
--- a/
src/analyze/analyze.c
+++ b/
src/analyze/analyze.c
@@
-1646,6
+1646,10
@@
static int dump_exit_status(int argc, char *argv[], void *userdata) {
if (!table)
return log_oom();
+ r = table_set_align_percent(table, table_get_cell(table, 0, 1), 100);
+ if (r < 0)
+ return log_error_errno(r, "Failed to right-align status: %m");
+
if (strv_isempty(strv_skip(argv, 1)))
for (size_t i = 0; i < ELEMENTSOF(exit_status_mappings); i++) {
if (!exit_status_mappings[i].name)