Suppress printing to console messages with loglevel above the
console_loglevel via print_sync().
Change-Id: Ia8d53fd2fadb74e323d776f053c91f7832402021
Fixes:
5d6a5a2378db ("patch-5.10.100-rt62.patch")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
if (!prb_read_valid(prb, *seq, &r))
return false;
+ if (suppress_message_printing(r.info->level)) {
+ *seq = r.info->seq;
+ return true;
+ }
+
text_len = record_print_text(&r, console_msg_format & MSG_FORMAT_SYSLOG, printk_time);
if (!call_sync_console_driver(con, &con->sync_buf[0], text_len))