diff mbox series

[6/6] ASoC: Intel: NHLT: Fix debug print format

Message ID 20190827141712.21015-7-amadeuszx.slawinski@linux.intel.com (mailing list archive)
State Accepted
Commit 855a06da37a773fd073d51023ac9d07988c87da8
Headers show
Series Small fixes | expand

Commit Message

Amadeusz Sławiński Aug. 27, 2019, 2:17 p.m. UTC
From: Amadeusz Sławiński <amadeuszx.slawinski@intel.com>

oem_table_id is 8 chars long, so we need to limit it, otherwise it
may print some unprintable characters into dmesg.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@intel.com>
---
 sound/soc/intel/skylake/skl-nhlt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/intel/skylake/skl-nhlt.c b/sound/soc/intel/skylake/skl-nhlt.c
index ab3d23c7bd65..19f328d71f24 100644
--- a/sound/soc/intel/skylake/skl-nhlt.c
+++ b/sound/soc/intel/skylake/skl-nhlt.c
@@ -136,7 +136,7 @@  int skl_nhlt_update_topology_bin(struct skl_dev *skl)
 	struct hdac_bus *bus = skl_to_bus(skl);
 	struct device *dev = bus->dev;
 
-	dev_dbg(dev, "oem_id %.6s, oem_table_id %8s oem_revision %d\n",
+	dev_dbg(dev, "oem_id %.6s, oem_table_id %.8s oem_revision %d\n",
 		nhlt->header.oem_id, nhlt->header.oem_table_id,
 		nhlt->header.oem_revision);