]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: avs: Fix i2s_test card name initialization
authorCezary Rojewski <cezary.rojewski@intel.com>
Wed, 6 Jul 2022 06:29:52 +0000 (08:29 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jul 2022 11:10:48 +0000 (12:10 +0100)
Update printf formatting as 'ssp_port' argument is of type 'int', not
'long int'.

Fixes: 506dc5989cfe ("ASoC: Intel: avs: Add I2S-test machine board")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220706062952.251704-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/boards/i2s_test.c

index 461b651cd331465b792150ec2d710712c296e262..8f0fd87bc8663866bde80b1ece1cf579ac1b0d31 100644 (file)
@@ -127,7 +127,7 @@ static int avs_i2s_test_probe(struct platform_device *pdev)
        if (!card)
                return -ENOMEM;
 
-       card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%ld-loopback", ssp_port);
+       card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%d-loopback", ssp_port);
        if (!card->name)
                return -ENOMEM;