Message ID | 1622624080-56025-1-git-send-email-guohanjun@huawei.com (mailing list archive) |
---|---|
Headers | show |
Series | ACPI: Further cleanups for message printing | expand |
On Wed, Jun 2, 2021 at 11:06 AM Hanjun Guo <guohanjun@huawei.com> wrote: > > After the message printing cleanups to decouple with ACPICA, the message > printing in ACPI subsystem still have the room for improvement. For now > we use both PREFIX "ACPI: " and pr_*() macros for message print in ACPI > subsystem, they are misused in follwing ways: > > - Duplicated prefix. For example in sysfs.c we have pr_fmt() but we > still use pr_err(PREFIX ...), which is worng; > > - Using pr_*() macros without pr_fmt(), but some pr_*() calls added > the PREFIX and some didn't in the same file; > > - Mixed use of printk(PREFIX) and pr_*() macros in one driver but > don't have the same prefix for message printing. > > All the above will confuse people, sometimes leads to write some wrong > message printing code, so just use pr_fmt() and pr_*() macros to generate > a unified format string, and remove the using of PREFIX "ACPI: " in ACPI > drivers, finally remove PREFIX "ACPI: " definition in the internal.h, > which prevent further misuse of the PREFIX. > > Also remove some in-house DBG code which is not useful, replace with > pr_debug() instead. > > Hanjun Guo (18): > ACPI: cmos_rtc: Using pr_fmt() and remove PREFIX > ACPI: blacklist: Unify the message printing > ACPI: bus: Use pr_*() macros to replace printk() > ACPI: event: Use pr_*() macros to replace printk() > ACPI: glue: Clean up the printing messages > ACPI: nvs: Unify the message printing > ACPI: osl: Remove the duplicated PREFIX for message printing > ACPI: pci_root: Unify the message printing > ACPI: processor_thermal: Remove unused PREFIX for printing > ACPI: processor_perflib: Cleanup print messages > ACPI: processor_throttling: Cleanup the printing messages > ACPI: reboot: Unify the message printing > ACPI: sysfs: Cleanup message printing > ACPI: sbshc: Unify the message printing > ACPI: scan: Unify the log message printing > ACPI: sbs: Unify the message printing > ACPI: sleep: Unify the message printing > ACPI: Remove the macro PREFIX "ACPI: " Whole series applied as 5.14 material, thanks!