aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-01-29 19:37:39 +0600
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-01-31 15:49:08 +0600
commite56f1b67f4330978c152a0b9cbfb4e37b974bb67 (patch)
tree0c56ad3c2a9ff85597cabfc0aa89f6b65fdba53e /src/logging.c
parenteff0880f3b026a1c2a26eb56e4eb7c844c0f9a3e (diff)
logging: fix coding style issues in _output_buf()
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.c b/src/logging.c
index 148bb272..5336e538 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -580,19 +580,19 @@ static int _output_buf(char *buf, int buf_len, struct log_target *target, unsign
* message in '\n'. If so, nip the last '\n' away, insert the source file info and re-append an
* '\n'. All this to allow LOGP("start..."); LOGPC("...end\n") constructs. */
if (target->print_filename_pos == LOG_FILENAME_POS_LINE_END
- && offset > 0 && buf[offset-1] == '\n') {
+ && offset > 0 && buf[offset - 1] == '\n') {
switch (target->print_filename2) {
case LOG_FILENAME_NONE:
break;
case LOG_FILENAME_PATH:
- offset --;
+ offset--;
ret = snprintf(buf + offset, rem, " (%s:%d)\n", file, line);
if (ret < 0)
goto err;
OSMO_SNPRINTF_RET(ret, rem, offset, len);
break;
case LOG_FILENAME_BASENAME:
- offset --;
+ offset--;
ret = snprintf(buf + offset, rem, " (%s:%d)\n", const_basename(file), line);
if (ret < 0)
goto err;