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@xxxxxxxxxxx> --- 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; -- 1.6.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html