[Lguest] [trivial PATCH] Fix long != int in lguest_device printk
Christian Borntraeger
borntraeger at de.ibm.com
Wed Jan 16 21:10:36 EST 2008
Am Dienstag, 15. Januar 2008 schrieb Rusty Russell:
> %zu should work?
Yes, seems to work.
---
make lguest_device compile without a warning on 32 and 64 bit.
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
---
drivers/lguest/lguest_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: kvm/drivers/lguest/lguest_device.c
===================================================================
--- kvm.orig/drivers/lguest/lguest_device.c
+++ kvm/drivers/lguest/lguest_device.c
@@ -116,7 +116,7 @@ static void lg_get(struct virtio_device
/* Check they didn't ask for more than the length of the config! */
BUG_ON(offset + len > desc->config_len);
- printk("Getting config len %u from page offset %u\n",
+ printk("Getting config len %u from page offset %zu\n",
len, lg_config(desc) + offset - (u8 *)lguest_devices);
memcpy(buf, lg_config(desc) + offset, len);
}
More information about the Lguest
mailing list