Reverse out addition of snprintf.
This commit is contained in:
parent
997966061e
commit
8386c8145c
1 changed files with 4 additions and 8 deletions
|
@ -108,8 +108,7 @@ tprintf(int flag, const char *fmt,...)
|
|||
#ifdef ELOG_TIMESTAMPS
|
||||
strcpy(line, tprintf_timestamp());
|
||||
#endif
|
||||
vsnprintf(line + TIMESTAMP_SIZE, ELOG_MAXLEN,
|
||||
fmt, ap);
|
||||
vsprintf(line + TIMESTAMP_SIZE, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
#ifdef USE_SYSLOG
|
||||
|
@ -139,8 +138,7 @@ tprintf1(const char *fmt, ... )
|
|||
#ifdef ELOG_TIMESTAMPS
|
||||
strcpy(line, tprintf_timestamp());
|
||||
#endif
|
||||
vsnprintf(line+TIMESTAMP_SIZE, ELOG_MAXLEN,
|
||||
fmt, ap);
|
||||
vsprintf(line+TIMESTAMP_SIZE, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
#ifdef USE_SYSLOG
|
||||
|
@ -168,8 +166,7 @@ eprintf(const char *fmt,...)
|
|||
#ifdef ELOG_TIMESTAMPS
|
||||
strcpy(line, tprintf_timestamp());
|
||||
#endif
|
||||
vsnprintf(line + TIMESTAMP_SIZE, ELOG_MAXLEN,
|
||||
fmt, ap);
|
||||
vsprintf(line + TIMESTAMP_SIZE, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
#ifdef USE_SYSLOG
|
||||
|
@ -347,8 +344,7 @@ read_pg_options(SIGNAL_ARGS)
|
|||
return;
|
||||
}
|
||||
|
||||
snprintf(buffer, BUF_SIZE - 1,
|
||||
"%s/%s", DataDir, "pg_options");
|
||||
sprintf(buffer, "%s/%s", DataDir, "pg_options");
|
||||
if ((fd = open(buffer, O_RDONLY)) < 0)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue