WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] fix a couple of minor xs_tdb things

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix a couple of minor xs_tdb things
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: 2005年10月27日 16:58:34 +0100
Delivery-date: 2005年10月27日 15:56:26 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
Remove the binary on make clean, and cast the field width argument to
the right type for printf().
# HG changeset patch
# User levon@xxxxxxxxxxxxxxxxx
# Node ID 8a8e25ecb86cdf7c9aaa11fabc8b42754b751ca6
# Parent 12ff3bd86d054ed4307c4056ed8185d55b93f1c6
remove xs_tdb_dump on make clean. Fix compile warnings.
diff -r 12ff3bd86d05 -r 8a8e25ecb86c tools/xenstore/Makefile
--- a/tools/xenstore/Makefile Thu Oct 27 16:49:47 2005 +0000
+++ b/tools/xenstore/Makefile Thu Oct 27 16:50:26 2005 +0000
@@ -75,6 +75,7 @@
 rm -f *.o *.opic *.so
 rm -f xenstored xs_random xs_stress xs_crashme
 rm -f xs_test xenstored_test
+ rm -f xs_tdb_dump
 $(RM) $(PROG_DEP)
 
 print-dir:
diff -r 12ff3bd86d05 -r 8a8e25ecb86c tools/xenstore/xs_tdb_dump.c
--- a/tools/xenstore/xs_tdb_dump.c Thu Oct 27 16:49:47 2005 +0000
+++ b/tools/xenstore/xs_tdb_dump.c Thu Oct 27 16:50:26 2005 +0000
@@ -53,17 +53,17 @@
 hdr = (void *)data.dptr;
 if (data.dsize < sizeof(*hdr))
 fprintf(stderr, "%.*s: BAD truncated\n",
- key.dsize, key.dptr);
+ (int)key.dsize, key.dptr);
 else if (data.dsize != total_size(hdr))
 fprintf(stderr, "%.*s: BAD length %i for %i/%i/%i 
(%i)\n",
- key.dsize, key.dptr, data.dsize,
+ (int)key.dsize, key.dptr, (int)data.dsize,
 hdr->num_perms, hdr->datalen,
 hdr->childlen, total_size(hdr));
 else {
 unsigned int i;
 char *p;
 
- printf("%.*s: ", key.dsize, key.dptr);
+ printf("%.*s: ", (int)key.dsize, key.dptr);
 for (i = 0; i < hdr->num_perms; i++)
 printf("%s%c%i",
 i == 0 ? "" : ",",
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix a couple of minor xs_tdb things, John Levon <=
Previous by Date: Re: [Xen-devel] unstable network trouble , Ewan Mellor
Next by Date: [Xen-devel] [Fwd: [Xen-changelog] Fix Jerone Young's xenstat / xenstore patch:] , Daniel Stekloff
Previous by Thread: [Xen-devel] [PATCH] fix some header usage in tools/misc/ , John Levon
Next by Thread: [Xen-devel] [Fwd: [Xen-changelog] Fix Jerone Young's xenstat / xenstore patch:] , Daniel Stekloff
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /