From: Ian Jackson Subject: Re: xl: Add subcommand 'xl dmesg' Date: Fri, 21 May 2010 11:50:33 +0100 Message-ID: <19446.25977.597606.197391@mariner.uk.xensource.com> References: <4BF4B218.2030403@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Keir Fraser , Yu Zhiguo List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("[Xen-devel] Re: xl: Add subcommand 'xl dmesg'"): > The implementation is good, but I think we could probably offer an > higher level API in libxenlight than just a wrapper around > xc_readconsolering. I agree that a higher-level API would be good. > I think we should have a libxl_dmesg instead of libxl_readconsolering, > and libxl_dmesg would print dmesg itself using the libxl logging > functions. > The caller can setup the logging function so that dmesg is printed to > stdout in this case. Are we sure that calling the logging function for every line in the ring is really what we want ? If nothing else this will repeat messages. Ian.