Commit 793ea49c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Takashi Iwai

ALSA: print small buffers via %*ph[C]

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d30a0d83
...@@ -443,9 +443,8 @@ static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus) ...@@ -443,9 +443,8 @@ static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus)
for (i = 0; i < 8; ++i) for (i = 0; i < 8; ++i)
iwave[i] = snd_gf1_peek(gus, bank_pos + i); iwave[i] = snd_gf1_peek(gus, bank_pos + i);
#ifdef CONFIG_SND_DEBUG_ROM #ifdef CONFIG_SND_DEBUG_ROM
printk(KERN_DEBUG "ROM at 0x%06x = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos, printk(KERN_DEBUG "ROM at 0x%06x = %*phC\n", bank_pos,
iwave[0], iwave[1], iwave[2], iwave[3], 8, iwave);
iwave[4], iwave[5], iwave[6], iwave[7]);
#endif #endif
if (strncmp(iwave, "INTRWAVE", 8)) if (strncmp(iwave, "INTRWAVE", 8))
continue; /* first check */ continue; /* first check */
......
...@@ -346,11 +346,10 @@ static int usb6fire_fw_check(u8 *version) ...@@ -346,11 +346,10 @@ static int usb6fire_fw_check(u8 *version)
if (!memcmp(version, known_fw_versions + i, 4)) if (!memcmp(version, known_fw_versions + i, 4))
return 0; return 0;
snd_printk(KERN_ERR PREFIX "invalid fimware version in device: " snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %*ph. "
"%02x %02x %02x %02x. "
"please reconnect to power. if this failure " "please reconnect to power. if this failure "
"still happens, check your firmware installation.", "still happens, check your firmware installation.",
version[0], version[1], version[2], version[3]); 4, version);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment