Commit cce871c5 authored by Alex Bennée's avatar Alex Bennée Committed by Peter Maydell
Browse files

hw/block/xen: use proper format string for printing sectors



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: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPaul Durrant <paul.durrant@citrix.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190116121350.23863-1-alex.bennee@linaro.org
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent bbca1067
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);