From: John Levon <levon@movementarian.org>
To: xen-devel@lists.xensource.com
Subject: [PATCH] fix a couple of minor xs_tdb things
Date: Thu, 27 Oct 2005 16:58:34 +0100 [thread overview]
Message-ID: <20051027155834.GD22479@trollied.org> (raw)
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 ? "" : ",",
reply other threads:[~2005-10-27 15:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20051027155834.GD22479@trollied.org \
--to=levon@movementarian.org \
--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.