Re: [PATCH 00/18] ACPI: Further cleanups for message printing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 2, 2021 at 11:06 AM Hanjun Guo <guohanjun@xxxxxxxxxx> 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!



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux