From: "Jan Beulich" Subject: Re: [PATCH v5 2/9] xen: introduce SHUTDOWN_soft_reset shutdown reason Date: Thu, 18 Dec 2014 13:28:08 +0000 Message-ID: <5492E4780200007800050A64@mail.emea.novell.com> References: <1418305541-5135-1-git-send-email-vkuznets@redhat.com> <1418305541-5135-3-git-send-email-vkuznets@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Y1b7l-0006lH-2m for xen-devel@lists.xenproject.org; Thu, 18 Dec 2014 13:28:13 +0000 In-Reply-To: <1418305541-5135-3-git-send-email-vkuznets@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vitaly Kuznetsov Cc: Olaf Hering , Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Julien Grall , Ian Jackson , Andrew Jones , Tim Deegan , David Vrabel , xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 11.12.14 at 14:45, wrote: > --- a/xen/common/shutdown.c > +++ b/xen/common/shutdown.c > @@ -71,6 +71,13 @@ void hwdom_shutdown(u8 reason) > break; /* not reached */ > } > > + case SHUTDOWN_soft_reset: > + { > + printk("Domain 0 did soft reset but it is unsupported, rebooting.\n"); Please shorten the message by e.g. dropping "did" and "but it is", and please also don't add pointless braces around this code (no matter that other code above/below does so - actually the whole function could use an overhaul, dropping these braces and replacing the mention of "Domain 0" with either "Hardware domain" or "Dom%d" using hwdom's correct ID). Jan