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 <[EMAIL PROTECTED]>
---
 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);
 }
_______________________________________________
Lguest mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/lguest

Reply via email to