Skip to content

Commit

Permalink
ASoC: Intel: NHLT: Fix debug print format
Browse files Browse the repository at this point in the history
commit 855a06d upstream.

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>
Link: https://lore.kernel.org/r/20190827141712.21015-7-amadeuszx.slawinski@linux.intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Amadeusz Sławiński authored and Greg Kroah-Hartman committed Oct 5, 2019
1 parent aa1aea3 commit c978052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/skylake/skl-nhlt.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int skl_nhlt_update_topology_bin(struct skl *skl)
struct hdac_bus *bus = ebus_to_hbus(&skl->ebus);
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);

Expand Down

0 comments on commit c978052

Please sign in to comment.