Skip to contentSkip to conversation

arch_init/ram_load: fix compilation on 32bit hosts

PATCH In review Alexander Graf 2 participants 3 messages Jun 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch_init/ram_load: fix compilation on 32bit hosts

Commit 87d2f825 broke compilation of arch_init.c on 32bit hosts. Fix it.

---
 arch_init.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch_init.c +4 -4
index 560d018..f46bdb1 100644
@@ -815,10 +815,10 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
                     QTAILQ_FOREACH(block, &ram_list.blocks, next) {
                         if (!strncmp(id, block->idstr, sizeof(id))) {
                             if (block->length != length) {
-                                fprintf(stderr, "Length mismatch: %s: %ld "
-                                        "in != " RAM_ADDR_FMT "\n", id, length,
-                                        block->length);
-                                ret =  -EINVAL;
+                                fprintf(stderr, "Length mismatch: %s: "
+                                        RAM_ADDR_FMT " " "in != " RAM_ADDR_FMT
+                                        "\n", id, length, block->length);
+                                ret = -EINVAL;
                                 goto done;
                             }
                             break;
Signature · 1 line
1.8.1.4