From: Ian Campbell Subject: Re: [PATCH v10 15/19] libxl: call hotplug scripts for disk devices from libxl Date: Fri, 20 Jul 2012 16:20:58 +0100 Message-ID: <1342797658.26734.126.camel@zakaz.uk.xensource.com> References: <1342793548-10239-1-git-send-email-roger.pau@citrix.com> <1342793548-10239-16-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1342793548-10239-16-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-07-20 at 15:12 +0100, Roger Pau Monne wrote: > + if (status) { > + libxl_report_child_exitstatus(CTX, LIBXL__LOG_ERROR, > + aodev->what, pid, status); > + hotplug_error = libxl__xs_read(gc, XBT_NULL, > + GCSPRINTF("%s/hotplug-error", be_path)); > + if (hotplug_error) > + LOG(ERROR, "reason of failure reported by hotplug script: %s", > + hotplug_error); This should be "reason *for* failure" but actually it's rather verbose, the log line is ~100 chars before you even append hotplug_error. I think just a "script: " prefix, or even nothing, would be ok. Ian.