1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

Use one fprintf() instead of two.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-10-16 22:50:12 +00:00
parent c0a124e6ce
commit bb317aa6ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213939

View File

@ -214,8 +214,7 @@ pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
/* Attach debuglevel if this is debug log. */
if (loglevel == LOG_DEBUG)
fprintf(out, "[%d]", debuglevel);
fprintf(out, " ");
fprintf(out, "%s", pjdlog_prefix);
fprintf(out, " %s", pjdlog_prefix);
vfprintf(out, fmt, ap);
if (error != -1)
fprintf(out, ": %s.", strerror(error));