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