From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 863BEC10F14 for ; Thu, 3 Oct 2019 16:22:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C5AB20659 for ; Thu, 3 Oct 2019 16:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119733; bh=oRV+leRlKcDaDL3Mq6cSLuxvma0IMKsByFJp4UgJ0xg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rlXfy+cEVLx5UcY4w/+bSf8+/nFK8Y/DGcmPQzu9HYS+M1BQ7WDXd03qMBGqZLdPM U22ZWXthMfWJZ2L3hdzXwGwbbZJBn8ybOMPoj8oNj81/TqItMCIxoJZFGGnGDDScth KjtC+Fun4J1/8CyG396CgaTBP4RB3uHb9PlER2SE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390260AbfJCQWM (ORCPT ); Thu, 3 Oct 2019 12:22:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390246AbfJCQWH (ORCPT ); Thu, 3 Oct 2019 12:22:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 055D420659; Thu, 3 Oct 2019 16:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119726; bh=oRV+leRlKcDaDL3Mq6cSLuxvma0IMKsByFJp4UgJ0xg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Egudr22gVQmt3IU5tMs30jzub8AeM/rHR2J3UFax1AF6DSJHq0up3UV713YGDbpYd t2eojIhzjdnaQUjnPFQVM7k9G78zk1ZyGNFXR3ktTAOP46I0/a7He9CJCfutM0vWcE IDyTV5M0BQqHBjATyRoUxSwboeG4BjakEv3NMOzE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Pierre-Louis Bossart , Mark Brown Subject: [PATCH 4.19 171/211] ASoC: Intel: NHLT: Fix debug print format Date: Thu, 3 Oct 2019 17:53:57 +0200 Message-Id: <20191003154526.280940544@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amadeusz Sławiński commit 855a06da37a773fd073d51023ac9d07988c87da8 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 Link: https://lore.kernel.org/r/20190827141712.21015-7-amadeuszx.slawinski@linux.intel.com Reviewed-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/skylake/skl-nhlt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/intel/skylake/skl-nhlt.c +++ b/sound/soc/intel/skylake/skl-nhlt.c @@ -231,7 +231,7 @@ int skl_nhlt_update_topology_bin(struct 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);