]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: amd: ps: Fix missing leading zeros in subsystem_device SSID log
authorSimon Trimmer <simont@opensource.cirrus.com>
Tue, 31 Mar 2026 13:19:16 +0000 (13:19 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2026 12:08:47 +0000 (13:08 +0100)
Ensure that subsystem_device is printed with leading zeros when combined
with subsystem_vendor to form the SSID. Without this, devices with upper
bits unset may appear to have an incorrect SSID in the debug output.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://patch.msgid.link/20260331131916.145546-1-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/pci-ps.c

index 3a20cc10d61f503b5f529fd3dbdea6e3a343c627..9751cf0784a6dbd47c1547b4cde0cfb1d2e5d845 100644 (file)
@@ -339,7 +339,7 @@ static struct snd_soc_acpi_mach *acp63_sdw_machine_select(struct device *dev)
                        mach->mach_params.subsystem_device = acp_data->subsystem_device;
                        mach->mach_params.subsystem_id_set = true;
 
-                       dev_dbg(dev, "SSID %x%x\n", mach->mach_params.subsystem_vendor,
+                       dev_dbg(dev, "SSID %x%04x\n", mach->mach_params.subsystem_vendor,
                                mach->mach_params.subsystem_device);
                        return mach;
                }