• Kane Chen's avatar
    ACPI: PM: Print full name path while adding power resource · dc776bd3
    Kane Chen authored
    While debugging a boot-time issue, it's hard to know what ACPI power
    resource the kernel is initializing.
    
    It's very helpful to print the full name path of the power resource
    being added so that it is not necessary to guess which one it is,
    especially on a system with 2 ore more power resources where the
    last name path segment is the same.
    
    Before:
     ACPI: PM: Power Resource [RTD3]
     ACPI: PM: Power Resource [RTD3]
     ACPI: PM: Power Resource [PR00]
     ACPI: PM: Power Resource [PR01]
    
    After:
     ACPI: \_SB_.PCI0.RP01.RTD3: New power resource
     ACPI: \_SB_.PCI0.RP08.RTD3: New power resource
     ACPI: \_SB_.PCI0.I2C3.H016.PR00: New power resource
     ACPI: \_SB_.PCI0.SPI1.CRFP.PR01: New power resource
    Signed-off-by: default avatarKane Chen <kane.chen@intel.com>
    [ rjw: Subject and changelog edits ]
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    dc776bd3
power.c 26.1 KB