diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-08-02 09:52:41 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-08-06 05:09:50 -0400 |
commit | 793ea49c476ebacfefabf78af9ea88a19da6ecdb (patch) | |
tree | 782fc94db8a97d1fc3fe7c4505227a08d21e6aa1 | |
parent | d30a0d839a5a282e43353fee53d5dc70db5eceda (diff) |
ALSA: print small buffers via %*ph[C]
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.c | 5 | ||||
-rw-r--r-- | sound/usb/6fire/firmware.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c index a76bc8d27c1d..3fc8b66fd167 100644 --- a/sound/isa/gus/interwave.c +++ b/sound/isa/gus/interwave.c | |||
@@ -443,9 +443,8 @@ static void __devinit 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 = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos, | 446 | printk(KERN_DEBUG "ROM at 0x%06x = %*phC\n", bank_pos, |
447 | iwave[0], iwave[1], iwave[2], iwave[3], | 447 | 8, iwave); |
448 | iwave[4], iwave[5], iwave[6], iwave[7]); | ||
449 | #endif | 448 | #endif |
450 | if (strncmp(iwave, "INTRWAVE", 8)) | 449 | if (strncmp(iwave, "INTRWAVE", 8)) |
451 | continue; /* first check */ | 450 | continue; /* first check */ |
diff --git a/sound/usb/6fire/firmware.c b/sound/usb/6fire/firmware.c index 56ad923bf6b5..a1d9b0792a1e 100644 --- a/sound/usb/6fire/firmware.c +++ b/sound/usb/6fire/firmware.c | |||
@@ -346,11 +346,10 @@ static int usb6fire_fw_check(u8 *version) | |||
346 | if (!memcmp(version, known_fw_versions + i, 4)) | 346 | if (!memcmp(version, known_fw_versions + i, 4)) |
347 | return 0; | 347 | return 0; |
348 | 348 | ||
349 | snd_printk(KERN_ERR PREFIX "invalid fimware version in device: " | 349 | snd_printk(KERN_ERR PREFIX "invalid fimware version in device: %*ph. " |
350 | "%02x %02x %02x %02x. " | ||
351 | "please reconnect to power. if this failure " | 350 | "please reconnect to power. if this failure " |
352 | "still happens, check your firmware installation.", | 351 | "still happens, check your firmware installation.", |
353 | version[0], version[1], version[2], version[3]); | 352 | 4, version); |
354 | return -EINVAL; | 353 | return -EINVAL; |
355 | } | 354 | } |
356 | 355 | ||