From: Takashi Iwai Subject: Re: [PATCH] sound: print small buffers via %*ph[C] Date: Mon, 06 Aug 2012 11:10:58 +0200 Message-ID: References: <1343915561-31545-1-git-send-email-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5105B265376 for ; Mon, 6 Aug 2012 10:41:15 +0200 (CEST) In-Reply-To: <1343915561-31545-1-git-send-email-andriy.shevchenko@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Andy Shevchenko Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 2 Aug 2012 16:52:41 +0300, Andy Shevchenko wrote: > > Signed-off-by: Andy Shevchenko Applied now. Thanks. Takashi > --- > sound/isa/gus/interwave.c | 5 ++--- > 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 a76bc8d..3fc8b66 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) > 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 */ > diff --git a/sound/usb/6fire/firmware.c b/sound/usb/6fire/firmware.c > index 56ad923..a1d9b07 100644 > --- a/sound/usb/6fire/firmware.c > +++ b/sound/usb/6fire/firmware.c > @@ -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; > } > > -- > 1.7.10.4 >