chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: make time formatting a bit smarter
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index 75a49d5e24cae9a78f2c1db36f3cd1ce82456f4e..dbb188296546489a221cc59ac1ea031d9686278c 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-698,10
+698,10
@@
void unit_dump(Unit *u, FILE *f, const char *prefix) {
fprintf(f, "%s\tSource Path: %s\n", prefix, u->source_path);
STRV_FOREACH(j, u->dropin_paths)
fprintf(f, "%s\tSource Path: %s\n", prefix, u->source_path);
STRV_FOREACH(j, u->dropin_paths)
- fprintf(f, "%s\tDrop
i
n Path: %s\n", prefix, *j);
+ fprintf(f, "%s\tDrop
I
n Path: %s\n", prefix, *j);
if (u->job_timeout > 0)
if (u->job_timeout > 0)
- fprintf(f, "%s\tJob Timeout: %s\n", prefix, format_timespan(timespan, sizeof(timespan), u->job_timeout));
+ fprintf(f, "%s\tJob Timeout: %s\n", prefix, format_timespan(timespan, sizeof(timespan), u->job_timeout
, 0
));
condition_dump_list(u->conditions, f, prefix);
condition_dump_list(u->conditions, f, prefix);
@@
-2910,7
+2910,7
@@
int unit_write_drop_in(Unit *u, bool runtime, const char *name, const char *data
return r;
mkdir_p(p, 0755);
return r;
mkdir_p(p, 0755);
- return write_
one_line
_file_atomic_label(q, data);
+ return write_
string
_file_atomic_label(q, data);
}
int unit_remove_drop_in(Unit *u, bool runtime, const char *name) {
}
int unit_remove_drop_in(Unit *u, bool runtime, const char *name) {