Skip to contentSkip to conversation

fs-back: build fix for BSD

PATCH In review Christoph Egger 2 participants 2 messages Aug 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs-back: build fix for BSD

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 has type 'time_t'

Originally I submitted this diff as part of c/s 18152 but got lost somehow.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
tools/fs-back/fs-ops.c +1 -1
diff -r 5569f833d162 tools/fs-back/fs-ops.c
@@ -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++;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 1 line · Christoph Egger, le Tue 05 Aug 2008 10:54:13 +0200, a écrit :

Originally I submitted this diff as part of c/s 18152 but got lost somehow.

Ah, that's the recent FS rework that dropped it, sorry for that.

Samuel