From: Ian Campbell Subject: Re: [PATCH v2] FIX: Cast the time_t values to avoid warnings Date: Thu, 4 Jul 2013 10:32:46 +0100 Message-ID: <1372930366.7184.19.camel@kazak.uk.xensource.com> References: <1367105536-23450-1-git-send-email-7heo@7heo.tk> <1367225720.3142.220.camel@zakaz.uk.xensource.com> <20130429110832.GA9708@7heo.tk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130429110832.GA9708@7heo.tk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "7heo@7heo.tk" <7heo@7heo.tk> Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-04-29 at 12:08 +0100, 7heo@7heo.tk wrote: > > > diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c > > > index cb9c822..be1b446 100644 > > > --- a/tools/libxl/libxl_create.c > > > +++ b/tools/libxl/libxl_create.c > > > @@ -350,7 +350,7 @@ int libxl__domain_build(libxl__gc *gc, > > > vments[2] = "image/ostype"; > > > vments[3] = "hvm"; > > > vments[4] = "start_time"; > > > - vments[5] = libxl__sprintf(gc, "%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); > > > + vments[5] = libxl__sprintf(gc, "%llu.%02d", (unsigned long long int)(start_time.tv_sec),(int)start_time.tv_usec/10000); > > > > These lines were overly long already but now they are really too long, > > any chance you could wrap them a bit? > Of course. Did you send a v3 of this patch which I missed? Ian.