summaryrefslogtreecommitdiff
path: root/src/shared/sysctl-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/sysctl-util.c')
-rw-r--r--src/shared/sysctl-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sysctl-util.c b/src/shared/sysctl-util.c
index 326652273c..480e6c38a1 100644
--- a/src/shared/sysctl-util.c
+++ b/src/shared/sysctl-util.c
@@ -44,7 +44,7 @@ int sysctl_write(const char *property, const char *value) {
assert(property);
assert(value);
- log_debug("Setting '%s' to '%s'", property, value);
+ log_debug("Setting '%s' to '%.*s'.", property, (int) strcspn(value, NEWLINE), value);
p = strjoina("/proc/sys/", property);
fd = open(p, O_WRONLY|O_CLOEXEC);