Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
liblattutil
Commits
3e9c6672
Commit
3e9c6672
authored
Jul 19, 2021
by
Shawn Webb
Browse files
log-stdio: Terminate log messages with a newline
Signed-off-by:
Shawn Webb
<
shawn.webb@hardenedbsd.org
>
parent
64ad8949
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/log-stdio.c
View file @
3e9c6672
...
...
@@ -60,7 +60,7 @@ lattutil_log_stdio_debug(lattutil_log_t *logp, int verbose,
goto
end
;
}
len
=
strlen
(
msg
);
fprintf
(
stderr
,
"DEBUG: %s"
,
msg
);
fprintf
(
stderr
,
"DEBUG: %s
\n
"
,
msg
);
free
(
msg
);
}
va_end
(
args
);
...
...
@@ -86,7 +86,7 @@ lattutil_log_stdio_err(lattutil_log_t *logp, int verbose,
goto
end
;
}
len
=
strlen
(
msg
);
fprintf
(
stderr
,
"ERROR: %s"
,
msg
);
fprintf
(
stderr
,
"ERROR: %s
\n
"
,
msg
);
free
(
msg
);
}
va_end
(
args
);
...
...
@@ -112,7 +112,7 @@ lattutil_log_stdio_info(lattutil_log_t *logp, int verbose,
goto
end
;
}
len
=
strlen
(
msg
);
fprintf
(
stdout
,
"INFO: %s"
,
msg
);
fprintf
(
stdout
,
"INFO: %s
\n
"
,
msg
);
free
(
msg
);
}
va_end
(
args
);
...
...
@@ -138,7 +138,7 @@ lattutil_log_stdio_warn(lattutil_log_t *logp, int verbose,
goto
end
;
}
len
=
strlen
(
msg
);
fprintf
(
stderr
,
"WARNING: %s"
,
msg
);
fprintf
(
stderr
,
"WARNING: %s
\n
"
,
msg
);
free
(
msg
);
}
va_end
(
args
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment