Use one fprintf() instead of two.
MFC after: 3 days
This commit is contained in:
parent
c0a124e6ce
commit
bb317aa6ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213939
@ -214,8 +214,7 @@ pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
|
|||||||
/* Attach debuglevel if this is debug log. */
|
/* Attach debuglevel if this is debug log. */
|
||||||
if (loglevel == LOG_DEBUG)
|
if (loglevel == LOG_DEBUG)
|
||||||
fprintf(out, "[%d]", debuglevel);
|
fprintf(out, "[%d]", debuglevel);
|
||||||
fprintf(out, " ");
|
fprintf(out, " %s", pjdlog_prefix);
|
||||||
fprintf(out, "%s", pjdlog_prefix);
|
|
||||||
vfprintf(out, fmt, ap);
|
vfprintf(out, fmt, ap);
|
||||||
if (error != -1)
|
if (error != -1)
|
||||||
fprintf(out, ": %s.", strerror(error));
|
fprintf(out, ": %s.", strerror(error));
|
||||||
|
Loading…
Reference in New Issue
Block a user