aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-08-07 10:55:14 -0400
committerTakashi Iwai <tiwai@suse.de>2013-08-08 06:04:18 -0400
commit663819fb7d7e21f45431db1a2c0180bf2388ed2f (patch)
tree80a67b67614e7abdddba30d457114b8eec00bc37
parente7e58df8ef3c9edb09a240084b4e0523c12bcb71 (diff)
ALSA: don't push static constants on stack for %*ph
There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/isa/gus/interwave.c3
-rw-r--r--sound/usb/6fire/firmware.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c
index 9942691cc0ca..afef0d738078 100644
--- a/sound/isa/gus/interwave.c
+++ b/sound/isa/gus/interwave.c
@@ -443,8 +443,7 @@ static void snd_interwave_detect_memory(struct snd_gus_card *gus)
443 for (i = 0; i < 8; ++i) 443 for (i = 0; i < 8; ++i)
444 iwave[i] = snd_gf1_peek(gus, bank_pos + i); 444 iwave[i] = snd_gf1_peek(gus, bank_pos + i);
445#ifdef CONFIG_SND_DEBUG_ROM 445#ifdef CONFIG_SND_DEBUG_ROM
446 printk(KERN_DEBUG "ROM at 0x%06x = %*phC\n", bank_pos, 446 printk(KERN_DEBUG "ROM at 0x%06x = %8phC\n", bank_pos, iwave);
447 8, iwave);
448#endif 447#endif
449 if (strncmp(iwave, "INTRWAVE", 8)) 448 if (strncmp(iwave, "INTRWAVE", 8))
450 continue; /* first check */ 449 continue; /* first check */
diff --git a/sound/usb/6fire/firmware.c b/sound/usb/6fire/firmware.c
index b9defcdeb7ef..780bf3f62d28 100644
--- a/sound/usb/6fire/firmware.c
+++ b/sound/usb/6fire/firmware.c
@@ -346,10 +346,10 @@ static int usb6fire_fw_check(u8 *version)
346 if (!memcmp(version, known_fw_versions + i, 2)) 346 if (!memcmp(version, known_fw_versions + i, 2))
347 return 0; 347 return 0;
348 348
349 snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %*ph. " 349 snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %4ph. "
350 "please reconnect to power. if this failure " 350 "please reconnect to power. if this failure "
351 "still happens, check your firmware installation.", 351 "still happens, check your firmware installation.",
352 4, version); 352 version);
353 return -EINVAL; 353 return -EINVAL;
354} 354}
355 355