From 41eb279c2f46ca020bc3b8d17811555f74b99d2e Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Wed, 15 Apr 2009 14:16:08 -0400 Subject: [PATCH] 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 --- utils/nfsd/nfsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5