Skip to content

Commit

Permalink
mount.ceph: tweak message on unknown option
Browse files Browse the repository at this point in the history
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 <john.spray@redhat.com>
  • Loading branch information
John Spray committed Dec 25, 2016
1 parent a3bf341 commit 042b1d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mount/mount.ceph.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 042b1d7

Please sign in to comment.