From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: [PATCH] ALSA: firewire: Neaten cmp_error function Date: Thu, 20 Oct 2011 08:36:55 +0200 Message-ID: <4E9FC187.4060309@ladisch.de> References: <1319086869.28078.6.camel@Joe-Laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id B65B11039A5 for ; Thu, 20 Oct 2011 08:35:37 +0200 (CEST) In-Reply-To: <1319086869.28078.6.camel@Joe-Laptop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Joe Perches Cc: Takashi Iwai , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Joe Perches wrote: > Use an actual struct va_format instead of casting > an array of pointers. > - dev_err(&c->resources.unit->device, "%cPCR%u: %pV", > - 'i', c->pcr_index, &(struct va_format){ fmt, &va }); There is no cast. This compound literal _is_ an actual struct va_format. > Move a constant char argument to the format string. Good catch, but this module is going to be extended to handle oPCRs, too. Regards, Clemens