ALSA: don't push static constants on stack for %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Aug 2013 14:55:14 +0000 (17:55 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Aug 2013 10:04:18 +0000 (12:04 +0200)
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>
sound/isa/gus/interwave.c
sound/usb/6fire/firmware.c

index 9942691cc0ca9c101bfd830b134bc4e97bddb727..afef0d738078f27935d844f5d002db1b7bbe2609 100644 (file)
@@ -443,8 +443,7 @@ static void snd_interwave_detect_memory(struct snd_gus_card *gus)
                for (i = 0; i < 8; ++i)
                        iwave[i] = snd_gf1_peek(gus, bank_pos + i);
 #ifdef CONFIG_SND_DEBUG_ROM
-               printk(KERN_DEBUG "ROM at 0x%06x = %*phC\n", bank_pos,
-                                 8, iwave);
+               printk(KERN_DEBUG "ROM at 0x%06x = %8phC\n", bank_pos, iwave);
 #endif
                if (strncmp(iwave, "INTRWAVE", 8))
                        continue;       /* first check */
index b9defcdeb7ef805af05a6453ce309a2eb64bdb18..780bf3f62d2800f3a8f9da7ffc8d011d0a6c3bd2 100644 (file)
@@ -346,10 +346,10 @@ static int usb6fire_fw_check(u8 *version)
                if (!memcmp(version, known_fw_versions + i, 2))
                        return 0;
 
-       snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %*ph. "
+       snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %4ph. "
                        "please reconnect to power. if this failure "
                        "still happens, check your firmware installation.",
-                       4, version);
+                       version);
        return -EINVAL;
 }