From a574c7558e33f172b6dfee53ee8df9e59c84c7b5 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sat, 28 Jul 2007 17:49:23 -0400 Subject: mount.nfs: fix more nits with error messages Catch-all. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- utils/mount/network.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'utils/mount/network.c') diff --git a/utils/mount/network.c b/utils/mount/network.c index 8da57d9..ab8cfb7 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -106,12 +106,13 @@ int nfs_gethostbyname(const char *hostname, struct sockaddr_in *saddr) saddr->sin_family = AF_INET; if (!inet_aton(hostname, &saddr->sin_addr)) { if ((hp = gethostbyname(hostname)) == NULL) { - nfs_error(_("mount: can't get address for %s\n"), - hostname); + nfs_error(_("%s: can't get address for %s\n"), + progname, hostname); return 0; } else { if (hp->h_length > sizeof(*saddr)) { - nfs_error(_("mount: got bad hp->h_length\n")); + nfs_error(_("%s: got bad hp->h_length\n"), + progname); hp->h_length = sizeof(*saddr); } memcpy(&saddr->sin_addr, hp->h_addr, hp->h_length); -- cgit