summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-22 21:35:40 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-22 21:48:17 +0100
commitd229704743b4740b4fc403d06b8e132e70ce7cb0 (patch)
tree995a09e0bae49a2d73f1ed7d6eb3172c81ce9e6e
parentde0b89913cde96616705cf9f5592920ca4f32eea (diff)
downloadsystemd-d229704743b4740b4fc403d06b8e132e70ce7cb0.tar.gz
Reword and reindent comment
Follow-up for 0e557eef37.
-rw-r--r--src/basic/log.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/basic/log.c b/src/basic/log.c
index 0e6023cff2..595db0c395 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -252,18 +252,14 @@ int log_open(void) {
/* Do not call from library code. */
- /* This function is often called in preparation for being able
- * to log. Let's make sure we don't clobber errno, so that a call
- * to a logging function immediately following a log_open() call
- * can still easily reference an error that happened immediately
- * before the log_open() call. */
+ /* This function is often called in preparation for logging. Let's make sure we don't clobber errno,
+ * so that a call to a logging function immediately following a log_open() call can still easily
+ * reference an error that happened immediately before the log_open() call. */
PROTECT_ERRNO;
- /* If we don't use the console we close it here, to not get
- * killed by SAK. If we don't use syslog we close it here so
- * that we are not confused by somebody deleting the socket in
- * the fs, and to make sure we don't use it if prohibit_ipc is
- * set. If we don't use /dev/kmsg we still keep it open,
+ /* If we don't use the console, we close it here to not get killed by SAK. If we don't use syslog, we
+ * close it here too, so that we are not confused by somebody deleting the socket in the fs, and to
+ * make sure we don't use it if prohibit_ipc is set. If we don't use /dev/kmsg we still keep it open,
* because there is no reason to close it. */
if (log_target == LOG_TARGET_NULL) {