]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Introduce logging functions
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Nov 2018 23:07:23 +0000 (23:07 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 22:44:28 +0000 (17:44 -0500)
commit51b4431c7c45a876c0052f9121c8c7af0462395b
treeea5b8ed22b446c4a23f81e07e1d8e23ae7da6702
parent90ae93d0ee90311e102140db085d834b03be7002
vfs: Introduce logging functions

Introduce a set of logging functions through which informational messages,
warnings and error messages incurred by the mount procedure can be logged
and, in a future patch, passed to userspace instead by way of the
filesystem configuration context file descriptor.

There are four functions:

 (1) infof(const char *fmt, ...);

     Logs an informational message.

 (2) warnf(const char *fmt, ...);

     Logs a warning message.

 (3) errorf(const char *fmt, ...);

     Logs an error message.

 (4) invalf(const char *fmt, ...);

     As errof(), but returns -EINVAL so can be used on a return statement.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs_context.h