From d0c2c187633fa906eee672c21f46a2ac68148d15 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Feb 1999 02:55:59 +0000 Subject: Simplify error reporting further. svn path=/trunk/; revision=2374 --- checkalias.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'checkalias.c') diff --git a/checkalias.c b/checkalias.c index 4ddf6789..d3d1cb07 100644 --- a/checkalias.c +++ b/checkalias.c @@ -137,15 +137,15 @@ int is_host_alias(const char *name, struct query *ctl) else if (((he_st = gethostbyname(ctl->server.truename)) != (struct hostent *)NULL) && ctl->server.checkalias) { if (outlevel >= O_DEBUG) - report(stdout, 0, _("Checking if %s is really the same node as %s\n"),ctl->server.truename,name); + report(stdout, _("Checking if %s is really the same node as %s\n"),ctl->server.truename,name); if (is_ip_alias(ctl->server.truename,name) == TRUE) { if (outlevel >= O_DEBUG) - report(stdout, 0, _("Yes, their IP addresses match\n")); + report(stdout, _("Yes, their IP addresses match\n")); goto match; } if (outlevel >= O_DEBUG) - report(stdout, 0, _("No, their IP addresses don't match\n")); + report(stdout, _("No, their IP addresses don't match\n")); } else return(FALSE); @@ -161,8 +161,8 @@ int is_host_alias(const char *name, struct query *ctl) case TRY_AGAIN: /* temporary error on authoritative server */ default: if (outlevel != O_SILENT) - report_complete(stdout, 0, "\n"); /* terminate the progress message */ - report(stderr, 0, + report_complete(stdout, "\n"); /* terminate the progress message */ + report(stderr, _("nameserver failure while looking for `%s' during poll of %s.\n"), name, ctl->server.pollname); ctl->errcount++; @@ -187,7 +187,7 @@ int is_host_alias(const char *name, struct query *ctl) case NO_RECOVERY: /* non-recoverable name server error */ case TRY_AGAIN: /* temporary error on authoritative server */ default: - report(stderr, 0, + report(stderr, _("nameserver failure while looking for `%s' during poll of %s.\n"), name, ctl->server.pollname); ctl->errcount++; -- cgit v1.2.3