mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Make it possible to use OSTRACE for multi-process testing.
FossilOrigin-Name: 0a7d416c4c43632725dc89cda8667cd9726b5152ee4692e4d0c9e2031e60cfb4
This commit is contained in:
@@ -1092,8 +1092,15 @@ void sqlite3DebugPrintf(const char *zFormat, ...){
|
||||
sqlite3VXPrintf(&acc, zFormat, ap);
|
||||
va_end(ap);
|
||||
sqlite3StrAccumFinish(&acc);
|
||||
#ifdef SQLITE_OS_TRACE_PROC
|
||||
{
|
||||
extern void SQLITE_OS_TRACE_PROC(const char *zBuf, int nBuf);
|
||||
SQLITE_OS_TRACE_PROC(zBuf, sizeof(zBuf));
|
||||
}
|
||||
#else
|
||||
fprintf(stdout,"%s", zBuf);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user