]> git.proxmox.com Git - systemd.git/blobdiff - src/shared/sysctl-util.c
New upstream version 240
[systemd.git] / src / shared / sysctl-util.c
index 326652273ce93f3ffb95ff06f67b38de826b2172..480e6c38a112975a9fe0b49c709fea45c06bb78a 100644 (file)
@@ -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);