projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9189979
)
core/swap: dump TimeoutSec=
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 30 Jan 2018 08:10:09 +0000
(17:10 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 30 Jan 2018 08:10:09 +0000
(17:10 +0900)
src/core/swap.c
patch
|
blob
|
history
diff --git
a/src/core/swap.c
b/src/core/swap.c
index 70097ff2ba57fcf0e14fd86ce44cfdc1091e324e..b10066db01ae2db2d57d61bd003f33bd8af15397 100644
(file)
--- a/
src/core/swap.c
+++ b/
src/core/swap.c
@@
-557,6
+557,7
@@
static int swap_coldplug(Unit *u) {
}
static void swap_dump(Unit *u, FILE *f, const char *prefix) {
+ char buf[FORMAT_TIMESPAN_MAX] = {};
Swap *s = SWAP(u);
SwapParameters *p;
@@
-592,6
+593,10
@@
static void swap_dump(Unit *u, FILE *f, const char *prefix) {
prefix, p->priority,
prefix, strempty(p->options));
+ fprintf(f,
+ "%sTimeoutSec: %s\n",
+ prefix, format_timespan(buf, sizeof(buf), s->timeout_usec, USEC_PER_SEC));
+
if (s->control_pid > 0)
fprintf(f,
"%sControl PID: "PID_FMT"\n",