All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH][TOOLS] fs-back: build fix for BSD
Date: Tue, 5 Aug 2008 10:54:13 +0200	[thread overview]
Message-ID: <200808051054.14312.Christoph.Egger@amd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]


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'

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

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

-- 
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

[-- Attachment #2: tools_fsback.diff --]
[-- Type: text/x-diff, Size: 548 bytes --]

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++;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2008-08-05  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05  8:54 Christoph Egger [this message]
2008-08-05  9:56 ` [PATCH][TOOLS] fs-back: build fix for BSD Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808051054.14312.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.