From: Benny Halevy Date: Wed, 15 Apr 2009 18:16:08 +0000 (-0400) Subject: utils/nfsd: fix -N optarg error printout X-Git-Tag: nfs-utils-1-1-6-rc7~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=41eb279c2f46ca020bc3b8d17811555f74b99d2e;p=nfs-utils.git 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 Signed-off-by: Steve Dickson --- 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;