~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to tests/libtest/testtrace.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-03-23 16:24:51 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: package-import@ubuntu.com-20120323162451-z4gstlabjkgnrh7h
Tags: upstream-7.25.0
ImportĀ upstreamĀ versionĀ 7.25.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
  struct timeval tv;
92
92
  struct tm *now;
93
93
  char timebuf[20];
 
94
  char *timestr;
94
95
  time_t secs;
95
96
 
96
97
  (void)handle;
97
98
 
98
99
  timebuf[0] = '\0';
 
100
  timestr = &timebuf[0];
99
101
 
100
102
  if(trace_cfg->tracetime) {
101
103
    tv = tutil_tvnow();
111
113
 
112
114
  switch (type) {
113
115
  case CURLINFO_TEXT:
114
 
    fprintf(stderr, "%s== Info: %s", &timebuf[0], data);
 
116
    fprintf(stderr, "%s== Info: %s", timestr, (char *)data);
115
117
  default: /* in case a new one is introduced to shock us */
116
118
    return 0;
117
119