From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [RFC] KEXEC: allocate crash note buffers at boot time v3 Date: Thu, 1 Dec 2011 14:00:38 +0000 Message-ID: <4ED78886.6070101@citrix.com> References: 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: Keir Fraser Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 01/12/11 05:20, Keir Fraser wrote: > On 01/12/2011 12:56, "Jan Beulich" wrote: > >>> + register_keyhandler('C', &crashdump_trigger_keyhandler); >>> + >>> + /* If no crash area, no need to allocate space for notes. */ >>> + if ( 0 == kexec_crash_area.size ) >>> + return 0; >> Wouldn't it make sense to switch the order of these? > I also really hate this constant-first ordering. > > -- Keir > It was a useful habit I got into when learning C/C++ and has stayed with me. I will endeavor to not do it. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com