1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Work around incompatibilities in the windows printf() routine within the

new I/O tracing logic. (CVS 3666)

FossilOrigin-Name: ceb3a07f559b5160232c8bce5446f4d0e8aab92b
This commit is contained in:
drh
2007-02-28 06:14:25 +00:00
parent b0603416dc
commit f075cd087b
3 changed files with 12 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.159 2007/02/28 04:47:27 drh Exp $
** $Id: shell.c,v 1.160 2007/02/28 06:14:25 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -111,10 +111,13 @@ static FILE *iotrace = 0;
*/
static void iotracePrintf(const char *zFormat, ...){
va_list ap;
char *z;
if( iotrace==0 ) return;
va_start(ap, zFormat);
vfprintf(iotrace, zFormat, ap);
z = sqlite3_vmprintf(zFormat, ap);
va_end(ap);
fprintf(iotrace, "%s", z);
sqlite3_free(z);
}