aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2022-11-05 12:55:25 +0100
committerThomas Huth <thuth@redhat.com>2022-11-06 10:41:47 +0100
commitd46e6bba55f858b829251e2f4bd7b150cdb5b1d6 (patch)
tree127ae152d07524556138ef46f8f5b6cef40480c6
parent624ee20cb9742bb536a778b9585c916b243e78f2 (diff)
downloadqemu-d46e6bba55f858b829251e2f4bd7b150cdb5b1d6.zip
qemu-d46e6bba55f858b829251e2f4bd7b150cdb5b1d6.tar.gz
qemu-d46e6bba55f858b829251e2f4bd7b150cdb5b1d6.tar.bz2
tests/qtest: Fix two format strings
Signed-off-by: Stefan Weil <sw@weilnetz.de> Message-Id: <20221105115525.623059-1-sw@weilnetz.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--tests/qtest/migration-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index d2eb107..f574331 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2188,7 +2188,7 @@ static void calc_dirty_rate(QTestState *who, uint64_t calc_time)
qobject_unref(qmp_command(who,
"{ 'execute': 'calc-dirty-rate',"
"'arguments': { "
- "'calc-time': %ld,"
+ "'calc-time': %" PRIu64 ","
"'mode': 'dirty-ring' }}",
calc_time));
}
@@ -2203,7 +2203,7 @@ static void dirtylimit_set_all(QTestState *who, uint64_t dirtyrate)
qobject_unref(qmp_command(who,
"{ 'execute': 'set-vcpu-dirty-limit',"
"'arguments': { "
- "'dirty-rate': %ld } }",
+ "'dirty-rate': %" PRIu64 " } }",
dirtyrate));
}