From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier Date: Tue, 13 Aug 2019 09:52:52 -0500 Message-ID: <39ce9fc6-c3e8-e7ed-af1c-6f612b831180@linux.intel.com> References: <20190621113116.47525-1-andriy.shevchenko@linux.intel.com> <20190813144253.GG30120@smile.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 54FE4F8015A for ; Tue, 13 Aug 2019 16:52:36 +0200 (CEST) In-Reply-To: <20190813144253.GG30120@smile.fi.intel.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Andy Shevchenko , Jie Yang , alsa-devel@alsa-project.org, "Rojewski, Cezary" , Takashi Iwai Cc: Vinod Koul , Mark Brown , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 8/13/19 9:42 AM, Andy Shevchenko wrote: > On Fri, Jun 21, 2019 at 02:31:16PM +0300, Andy Shevchenko wrote: >> Instead of using two additional "%s" specifiers, put the constant string >> literals directly to the format specifier. >> > > Pierre, does it look good to you? LGTM but Cezary should chime in for changes to the Skylake driver. > >> Cc: Liam Girdwood >> Cc: Mark Brown >> Cc: Vinod Koul >> Signed-off-by: Andy Shevchenko >> --- >> sound/soc/intel/skylake/skl-sst.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c >> index 13c636dece56..f3e1399450db 100644 >> --- a/sound/soc/intel/skylake/skl-sst.c >> +++ b/sound/soc/intel/skylake/skl-sst.c >> @@ -421,8 +421,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid) >> int ret = 0; >> char mod_name[64]; /* guid str = 32 chars + 4 hyphens */ >> >> - snprintf(mod_name, sizeof(mod_name), "%s%pUL%s", >> - "intel/dsp_fw_", guid, ".bin"); >> + snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", guid); >> >> module_entry = skl_module_get_from_id(ctx, mod_id); >> if (module_entry == NULL) { >> -- >> 2.20.1 >> >