ALSA: print small buffers via %*ph[C]
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Aug 2012 13:52:41 +0000 (16:52 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Aug 2012 09:09:50 +0000 (11:09 +0200)
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 a76bc8d27c1d914a2dd36262ef2f1f8f1a9307bf..3fc8b66fd167fc98bbdd42c29b889920f5c104ce 100644 (file)
@@ -443,9 +443,8 @@ static void __devinit 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 = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos,
-                      iwave[0], iwave[1], iwave[2], iwave[3],
-                      iwave[4], iwave[5], iwave[6], iwave[7]);
+               printk(KERN_DEBUG "ROM at 0x%06x = %*phC\n", bank_pos,
+                                 8, iwave);
 #endif
                if (strncmp(iwave, "INTRWAVE", 8))
                        continue;       /* first check */
index 56ad923bf6b5cb74db2f5a56cdc2a16807c66a03..a1d9b0792a1e5b1b68816ad794a77fb76bae2398 100644 (file)
@@ -346,11 +346,10 @@ static int usb6fire_fw_check(u8 *version)
                if (!memcmp(version, known_fw_versions + i, 4))
                        return 0;
 
-       snd_printk(KERN_ERR PREFIX "invalid fimware version in device: "
-                       "%02x %02x %02x %02x. "
+       snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %*ph. "
                        "please reconnect to power. if this failure "
                        "still happens, check your firmware installation.",
-                       version[0], version[1], version[2], version[3]);
+                       4, version);
        return -EINVAL;
 }