From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH][TOOLS] fs-back: build fix for BSD Date: Tue, 5 Aug 2008 10:54:13 +0200 Message-ID: <200808051054.14312.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_2UBmIRWCQ82zF6R" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_2UBmIRWCQ82zF6R Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch fixes this build error: fs-ops.c: In function 'dispatch_stat': fs-ops.c:285: warning: format '%ld' expects type 'long int', but argument 4= =20 has type 'time_t' Signed-off-by: Christoph Egger Originally I submitted this diff as part of c/s 18152 but got lost somehow. =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_2UBmIRWCQ82zF6R Content-Type: text/x-diff; charset="iso-8859-1"; name="tools_fsback.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools_fsback.diff" diff -r 5569f833d162 tools/fs-back/fs-ops.c --- a/tools/fs-back/fs-ops.c Mon Aug 04 23:00:30 2008 +0100 +++ b/tools/fs-back/fs-ops.c Tue Aug 05 10:43:00 2008 +0200 @@ -282,7 +282,7 @@ static void dispatch_stat(struct fs_moun /* Stat, and create the response */ ret = fstat(fd, &stat); printf("Mode=%o, uid=%d, a_time=%ld\n", - stat.st_mode, stat.st_uid, stat.st_atime); + stat.st_mode, stat.st_uid, (long)stat.st_atime); /* Get a response from the ring */ rsp_idx = mount->ring.rsp_prod_pvt++; --Boundary-00=_2UBmIRWCQ82zF6R Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_2UBmIRWCQ82zF6R--