]> git.baikalelectronics.ru Git - kernel.git/commit
acpi_os_vprintf: Use printk_get_level() to avoid unnecessary KERN_CONT
authorJoe Perches <joe@perches.com>
Wed, 12 Oct 2016 18:50:34 +0000 (11:50 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Oct 2016 19:46:37 +0000 (21:46 +0200)
commit792dcf56863059cac480136e22aff944c7d4a632
treea1888f3ceb010112014d008340fbdf1ea788e2cc
parenta4f2277c6df45685f174bf2a0b30bc54b8d76390
acpi_os_vprintf: Use printk_get_level() to avoid unnecessary KERN_CONT

acpi_os_vprintf currently always uses a KERN_CONT prefix which may be
followed immediately by a proper KERN_<LEVEL>.  Check if the buffer
already has a KERN_<LEVEL> at the start of the buffer and avoid the
unnecessary KERN_CONT.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c