Message ID | 1274954895-20460-1-git-send-email-Jes.Sorensen@redhat.com |
---|---|
State | New |
Headers | show |
On 05/27/10 12:08, Jes.Sorensen@redhat.com wrote: > From: Jes Sorensen <Jes.Sorensen@redhat.com> > > Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 > > The format statement expects unsigned long on x86_64, but receives > unsigned long long, so gcc exits with an error. > > Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> ARGH, sorry, this one was only half finished - please ignore. I'll post a working version in a minute. Jes
diff --git a/hw/vhost_net.c b/hw/vhost_net.c index 26dae79..eab310c 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -100,7 +100,7 @@ struct vhost_net *vhost_net_init(VLANClientState *backend, int devfd) } if (~net->dev.features & net->dev.backend_features) { fprintf(stderr, "vhost lacks feature mask %" PRIu64 " for backend\n", - ~net->dev.features & net->dev.backend_features); + (uint64_t)~net->dev.features & net->dev.backend_features); vhost_dev_cleanup(&net->dev); goto fail; }