dm vdo logger: switch UDS_LOG_NOTICE to be alias for UDS_LOG_INFO

Prepare to bring VDO's logging closer to DM's logging by eliminating
support for KERN_NOTICE log level (DM hasn't ever had a need for it).

Only one message in index-session.c used UDS_LOG_NOTICE, convert it to
log with uds_log_info().

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
This commit is contained in:
Mike Snitzer 2024-02-14 18:25:13 -05:00
parent cae3816d99
commit 318a9ce59b
3 changed files with 1 additions and 8 deletions

View File

@ -378,7 +378,7 @@ int uds_open_index(enum uds_open_index_type open_type,
session->parameters = *parameters;
format_dev_t(name, parameters->bdev->bd_dev);
uds_log_notice("%s: %s", get_open_type_string(open_type), name);
uds_log_info("%s: %s", get_open_type_string(open_type), name);
result = initialize_index_session(session, open_type);
if (result != UDS_SUCCESS)

View File

@ -124,8 +124,6 @@ static void emit_log_message_to_kernel(int priority, const char *fmt, ...)
printk(KERN_WARNING "%pV", &vaf);
break;
case UDS_LOG_NOTICE:
printk(KERN_NOTICE "%pV", &vaf);
break;
case UDS_LOG_INFO:
printk(KERN_INFO "%pV", &vaf);
break;

View File

@ -74,9 +74,6 @@ int uds_vlog_strerror(int priority, int errnum, const char *module, const char *
#define uds_log_info_strerror(errnum, ...) \
uds_log_strerror(UDS_LOG_INFO, errnum, __VA_ARGS__)
#define uds_log_notice_strerror(errnum, ...) \
uds_log_strerror(UDS_LOG_NOTICE, errnum, __VA_ARGS__)
#define uds_log_warning_strerror(errnum, ...) \
uds_log_strerror(UDS_LOG_WARNING, errnum, __VA_ARGS__)
@ -93,8 +90,6 @@ void __uds_log_message(int priority, const char *module, const char *format, ...
#define uds_log_info(...) uds_log_message(UDS_LOG_INFO, __VA_ARGS__)
#define uds_log_notice(...) uds_log_message(UDS_LOG_NOTICE, __VA_ARGS__)
#define uds_log_warning(...) uds_log_message(UDS_LOG_WARNING, __VA_ARGS__)
#define uds_log_error(...) uds_log_message(UDS_LOG_ERR, __VA_ARGS__)