From: Chuck Lever Date: Tue, 14 Jul 2009 20:51:27 +0000 (-0400) Subject: mount.nfs: Fix some nfs_error() nits in network.c X-Git-Tag: nfs-utils-1-2-1-rc2~8 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1767d5f5c9c26aa33b602a33ece83c2bfe55259f mount.nfs: Fix some nfs_error() nits in network.c Fix a couple of nfs_error() call sites in utils/mount/network.c. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/network.c b/utils/mount/network.c index ad6c146..6e0a72a 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -783,8 +783,8 @@ int start_statd(void) execl(START_STATD, START_STATD, NULL); exit(1); case -1: /* error */ - nfs_error(_("fork failed: %s"), - strerror(errno)); + nfs_error(_("%s: fork failed: %s"), + progname, strerror(errno)); break; default: /* parent */ waitpid(pid, NULL,0); @@ -1159,7 +1159,8 @@ int nfs_callback_address(const struct sockaddr *sap, const socklen_t salen, out_failed: *buflen = 0; if (verbose) - nfs_error(_("%s: failed to construct callback address")); + nfs_error(_("%s: failed to construct callback address"), + progname); return 0; }