From 042b1d7cb1396dd06565c3bdc01469b8fe114a08 Mon Sep 17 00:00:00 2001 From: John Spray Date: Sun, 25 Dec 2016 16:51:18 +0000 Subject: [PATCH] mount.ceph: tweak message on unknown option The old message sounded worse than it really was, and was going to stdout instead of stderr. Fixes: http://tracker.ceph.com/issues/18159 Signed-off-by: John Spray --- src/mount/mount.ceph.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 8a0853fdf45..ab96970c312 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -201,8 +201,10 @@ static char *parse_options(const char *data, int *filesys_flags) skip = 0; } else { skip = 0; - if (verboseflag) - printf("ceph: Unknown mount option %s\n",data); + if (verboseflag) { + fprintf(stderr, "mount.ceph: unrecognized mount option \"%s\", " + "passing to kernel.\n", data); + } } /* Copy (possibly modified) option to out */