summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-28 17:49:23 -0400
committerNeil Brown <neilb@suse.de>2007-07-30 16:11:00 +1000
commita574c7558e33f172b6dfee53ee8df9e59c84c7b5 (patch)
tree7610d05f506ce701a0beb9c8d2d431eb4aec11a4 /utils/mount/network.c
parent5835b1eec5a1f1e463c0762c510c6643fa2bff62 (diff)
downloadnfs-utils-a574c7558e33f172b6dfee53ee8df9e59c84c7b5.tar.gz
nfs-utils-a574c7558e33f172b6dfee53ee8df9e59c84c7b5.tar.xz
nfs-utils-a574c7558e33f172b6dfee53ee8df9e59c84c7b5.zip
mount.nfs: fix more nits with error messages
Catch-all. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/network.c')
-rw-r--r--utils/mount/network.c7
1 files changed, 4 insertions, 3 deletions
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);