From: Keir Fraser Subject: Re: FW: Is it a correct place for VBD information? Date: Wed, 28 Jun 2006 07:46:25 +0100 Message-ID: <03d365649faeba0a7193e4a2aa249ba7@cl.cam.ac.uk> References: <001001c69a50$4bc9b7d0$4c87380a@ad.spf.cl.nec.co.jp> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <001001c69a50$4bc9b7d0$4c87380a@ad.spf.cl.nec.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Satoshi Uchida Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28 Jun 2006, at 02:15, Satoshi Uchida wrote: > In Linux net/core/net-sysfs.c., the 'fmt' representation is used by > statistical data. > In the other, it is used literals or define show function directly. > Therefore, representation will be not unified in detail. > (Perhaps, macro is not better in net/core/net-sysfs.c) Using a macro for the function makes sense here, rather than duplicating a multi-line function block. > I think that it is useful for recognizing data type and interesting, > and so used fmt representation. > > In Linux, "\n" is written in format even if using literals. > However, I think that above representation is interesting and > want to use idea if using literals. > > Please comment, using fmt macro or literals. Literals are clearer here. Then the macro invocations read like a printf() style of call. -- Keir