{
char message[QUERY_ALLOC];
- vsnprintf(message, sizeof(message), fmt, ap);
+ vsnprintf(message, sizeof(message), _(fmt), ap);
switch (type)
{
case PG_DEBUG:
if (debug)
- printf("%s", _(message));
+ printf("%s", message);
break;
case PG_PROGRESS:
if (showprogress)
- printf("%s", _(message));
+ printf("%s", message);
break;
case PG_WARNING:
- printf("%s", _(message));
+ printf("%s", message);
break;
case PG_FATAL:
- printf("\n%s", _(message));
+ printf("\n%s", message);
printf("%s", _("Failure, exiting\n"));
exit(1);
break;
{
char message[QUERY_ALLOC];
- vsnprintf(message, sizeof(message), fmt, ap);
+ vsnprintf(message, sizeof(message), _(fmt), ap);
/* PG_VERBOSE and PG_STATUS are only output in verbose mode */
/* fopen() on log_opts.internal might have failed, so check it */
{
case PG_VERBOSE:
if (log_opts.verbose)
- printf("%s", _(message));
+ printf("%s", message);
break;
case PG_STATUS:
strlen(message) <= MESSAGE_WIDTH - 2 ? message :
message + strlen(message) - MESSAGE_WIDTH + 3 + 2);
else
- printf(" %s\n", _(message));
+ printf(" %s\n", message);
break;
case PG_REPORT:
case PG_WARNING:
- printf("%s", _(message));
+ printf("%s", message);
break;
case PG_FATAL:
- printf("\n%s", _(message));
+ printf("\n%s", message);
printf("Failure, exiting\n");
exit(1);
break;