From e356c200cb5716d367ab23fc5c16abeef42a7d08 Mon Sep 17 00:00:00 2001 From: niklas Date: Wed, 8 May 1996 08:53:03 +0000 Subject: [PATCH] Clarified warning messages a bit --- sbin/mount_nfs/mount_nfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 60694b9f81d..30769513510 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_nfs.c,v 1.4 1996/04/21 23:46:50 deraadt Exp $ */ +/* $OpenBSD: mount_nfs.c,v 1.5 1996/05/08 08:53:03 niklas Exp $ */ /* $NetBSD: mount_nfs.c,v 1.12 1996/04/13 01:31:43 jtc Exp $ */ /* @@ -587,14 +587,15 @@ getnfsargs(spec, nfsargsp) if ((nfsargsp->flags & NFSMNT_KERB)) { if ((hp = gethostbyaddr((char *)&saddr.sin_addr.s_addr, sizeof (u_long), AF_INET)) == (struct hostent *)0) { - warnx("can't reverse resolve net address"); + warnx("can't resolve hostname for address %s", + hostp); return (0); } } } else { hp = gethostbyname(hostp); if (hp == NULL) { - warnx("can't get net id for host"); + warnx("can't resolve address for host %s", hostp); return (0); } memcpy(&saddr.sin_addr, hp->h_addr, hp->h_length); -- 2.20.1