if (opt.verbose)
{
char *hurl = url_string (u, true);
- char tmp[256];
- strcpy (tmp, " ");
- if (count > 1)
- sprintf (tmp, _("(try:%2d)"), count);
- logprintf (LOG_VERBOSE, "--%s-- %s\n %s\n",
- tms, hurl, tmp);
+ logprintf (LOG_VERBOSE, "--%s-- %s\n",
+ tms, hurl);
+
+ if (count > 1)
+ {
+ char tmp[256];
+ sprintf (tmp, _("(try:%2d)"), count);
+ logprintf (LOG_VERBOSE, " %s", tmp);
+ }
+ else
+ {
+ logprintf (LOG_VERBOSE, " ");
+ }
+
+ if (hstat.local_file)
+ {
+ logprintf (LOG_VERBOSE, " => `%s'\n",
+ HYPHENP (hstat.local_file) ? "STDOUT" : hstat.local_file);
+ }
+ else
+ {
+ logprintf (LOG_VERBOSE, "\n");
+ }
+
#ifdef WINDOWS
ws_changetitle (hurl);
#endif
/* Non-fatal errors continue executing the loop, which will
bring them to "while" statement at the end, to judge
whether the number of tries was exceeded. */
- //free_hstat (&hstat);
+ /* free_hstat (&hstat); */
printwhat (count, opt.ntry);
continue;
case HOSTERR: case CONIMPOSSIBLE: case PROXERR: case AUTHFAILED:
_("Remote file is newer, retrieving.\n"));
}
- //free_hstat (&hstat);
+ /* free_hstat (&hstat); */
hstat.timestamp_checked = true;
continue;
}
_("%s (%s) - Connection closed at byte %s. "),
tms, tmrate, number_to_static_string (hstat.len));
printwhat (count, opt.ntry);
- //free_hstat (&hstat);
+ /* free_hstat (&hstat); */
continue;
}
else
tms, tmrate, number_to_static_string (hstat.len),
hstat.rderrmsg);
printwhat (count, opt.ntry);
- //free_hstat (&hstat);
+ /* free_hstat (&hstat); */
continue;
}
else /* hstat.res == -1 and contlen is given */
number_to_static_string (hstat.contlen),
hstat.rderrmsg);
printwhat (count, opt.ntry);
- //free_hstat (&hstat);
+ /* free_hstat (&hstat); */
continue;
}
}