All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Muli Ben-Yehuda <mulix@mulix.org>
Cc: harry <harry@hebutterworth.freeserve.co.uk>,
	xen-devel@lists.xensource.com
Subject: Re: [PATCH][1/17] USB virt 2.6 split driver---xenidc platform
Date: Mon, 21 Nov 2005 18:10:09 -0600	[thread overview]
Message-ID: <438261E1.2010205@us.ibm.com> (raw)
In-Reply-To: <20051121201049.GA22728@granada.merseine.nu>

Muli Ben-Yehuda wrote:

>I'm going to give every comment once, not everywhere it
>happens. Please apply as appropriate to all recurring
>occurences. Also, this is my personal opinion of what Linux code
>should like like, please feel free to disagree, provided the
>alternative is just as "Linuxy".
>
>On Mon, Nov 21, 2005 at 01:18:39PM +0000, harry wrote:
>  
>
>>+#define trace0( format ) \
>>+printk( KERN_INFO "xenidc %s:" format "\n", __PRETTY_FUNCTION__ )
>>+
>>+#define trace1( format, a0 ) \
>>+printk( KERN_INFO "xenidc %s:" format "\n", __PRETTY_FUNCTION__, a0 )
>>+
>>+#define trace2( format, a0, a1 ) \
>>+printk( KERN_INFO "xenidc %s:" format "\n", __PRETTY_FUNCTION__, a0, a1 )
>>+
>>+#define trace3( format, a0, a1, a2 ) \
>>+printk( KERN_INFO "xenidc %s:" format "\n", __PRETTY_FUNCTION__, a0, a1, a2 )
>>+
>>+#define trace() trace0( "" )
>>    
>>
>
>gcc has variable argument support in macros, please use it.
>  
>
Please use the C99 version instead of the GCC version.  That would be:

#define trace(format, ...) printk(KERN_INFO "xenidc %s: " format "\n", 
__FUNCTION__, ## __VA_ARGS__)

The '##' is technically a GCC extension but the old style is deprecated 
anyway :-)

Regards,

Anthony Liguori

      parent reply	other threads:[~2005-11-22  0:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 13:18 [PATCH][1/17] USB virt 2.6 split driver---xenidc platform harry
2005-11-21 20:10 ` Muli Ben-Yehuda
2005-11-21 21:03   ` Stephan Seitz
2005-11-21 21:07     ` Muli Ben-Yehuda
2005-11-21 21:21   ` Harry Butterworth
2005-11-22 10:51     ` Muli Ben-Yehuda
2005-11-22 11:05       ` harry
2005-11-22 15:05         ` Mark Williamson
2005-11-22  0:10   ` Anthony Liguori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=438261E1.2010205@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=harry@hebutterworth.freeserve.co.uk \
    --cc=mulix@mulix.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.