#include "test.h"
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
#include "testutil.h"
#include "testtrace.h"
#include "memdebug.h"
struct timeval tv;
struct tm *now;
char timebuf[20];
+ char *timestr;
time_t secs;
(void)handle;
timebuf[0] = '\0';
+ timestr = &timebuf[0];
if(trace_cfg->tracetime) {
tv = tutil_tvnow();
switch (type) {
case CURLINFO_TEXT:
- fprintf(stderr, "%s== Info: %s", &timebuf[0], data);
+ fprintf(stderr, "%s== Info: %s", timestr, (char *)data);
default: /* in case a new one is introduced to shock us */
return 0;