diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-15 14:16:08 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-04-15 14:16:08 -0400 |
commit | 41eb279c2f46ca020bc3b8d17811555f74b99d2e (patch) | |
tree | ce6a2c896b1ce929ca77d31df1b21a9433460228 /utils/nfsd/nfsd.c | |
parent | d4008af910ba1d527f00f8207fb3f8f5709e943d (diff) | |
download | nfs-utils-41eb279c2f46ca020bc3b8d17811555f74b99d2e.tar.gz nfs-utils-41eb279c2f46ca020bc3b8d17811555f74b99d2e.tar.xz nfs-utils-41eb279c2f46ca020bc3b8d17811555f74b99d2e.zip |
utils/nfsd: fix -N optarg error printout
as currently printed c is the version number, not a string char,
therefore is should be printed as %d not %c. That said, just print
optarg as %s since it might be non-numeric.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/nfsd/nfsd.c')
-rw-r--r-- | utils/nfsd/nfsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c index aaf8d29..c97c81f 100644 --- a/utils/nfsd/nfsd.c +++ b/utils/nfsd/nfsd.c @@ -86,7 +86,7 @@ main(int argc, char **argv) NFSCTL_VERUNSET(versbits, c); break; default: - fprintf(stderr, "%c: Unsupported version\n", c); + fprintf(stderr, "%s: Unsupported version\n", optarg); exit(1); } break; |