All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/block/xen: use proper format string for printing sectors
@ 2019-01-16 12:13 Alex Bennée
  2019-01-16 12:19   ` Paul Durrant
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alex Bennée @ 2019-01-16 12:13 UTC (permalink / raw)
  To: peter.maydell
  Cc: qemu-devel, Alex Bennée, Stefano Stabellini, Anthony Perard,
	Paul Durrant, Kevin Wolf, Max Reitz, open list:X86,
	open list:Block layer core

The %lu format string is different depending on the host architecture
which causes builds like the debian-armhf-cross build to fail. Use the
correct PRi64 format string.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 hw/block/xen-block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c
index be28b63442..a636487b3e 100644
--- a/hw/block/xen-block.c
+++ b/hw/block/xen-block.c
@@ -215,7 +215,7 @@ static void xen_block_realize(XenDevice *xendev, Error **errp)
 
     xen_device_backend_printf(xendev, "sector-size", "%u",
                               conf->logical_block_size);
-    xen_device_backend_printf(xendev, "sectors", "%lu",
+    xen_device_backend_printf(xendev, "sectors", "%"PRIi64,
                               blk_getlength(conf->blk) /
                               conf->logical_block_size);
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-01-21 17:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 12:13 [Qemu-devel] [PATCH] hw/block/xen: use proper format string for printing sectors Alex Bennée
2019-01-16 12:19 ` Paul Durrant
2019-01-16 12:19   ` Paul Durrant
2019-01-16 13:04   ` [Qemu-devel] " Philippe Mathieu-Daudé
2019-01-16 13:04   ` Philippe Mathieu-Daudé
2019-01-16 18:03 ` [Qemu-devel] [Xen-devel] " Andrew Cooper
2019-01-16 18:03   ` Andrew Cooper
2019-01-17  8:21   ` Alex Bennée
2019-01-17  8:21   ` [Qemu-devel] [Xen-devel] " Alex Bennée
2019-01-17  9:02     ` Paul Durrant
2019-01-17  9:02       ` Paul Durrant
2019-01-21 17:19 ` [Qemu-devel] " Peter Maydell
2019-01-21 17:19   ` Peter Maydell

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.