* [PATCH] fix a couple of minor xs_tdb things
@ 2005-10-27 15:58 John Levon
0 siblings, 0 replies; only message in thread
From: John Levon @ 2005-10-27 15:58 UTC (permalink / raw)
To: xen-devel
Remove the binary on make clean, and cast the field width argument to
the right type for printf().
# HG changeset patch
# User levon@movementarian.org
# 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 ? "" : ",",
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-27 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-27 15:58 [PATCH] fix a couple of minor xs_tdb things John Levon
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.