Received: from eggs.gnu.org ([2001:4830:134:3::10]:56577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORLF-0003t9-IR for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VORLA-0007eS-Ov for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORLA-0007eM-HD for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:40 -0400 From: Juan Quintela Date: Tue, 24 Sep 2013 14:03:21 +0200 Message-Id: <1380024203-25897-8-git-send-email-quintela@redhat.com> In-Reply-To: <1380024203-25897-1-git-send-email-quintela@redhat.com> References: <1380024203-25897-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 7/9] migration: Fix debug print type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christoffer Dall , anthony@codemonkey.ws From: Christoffer Dall The printf args are uint64_t and with -Werr QEMU doesn't compile with migration debugging turned on unless this is fixed. Fix it. Signed-off-by: Christoffer Dall Signed-off-by: Juan Quintela --- migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 200d404..b4f8462 100644 --- a/migration.c +++ b/migration.c @@ -567,7 +567,8 @@ static void *migration_thread(void *opaque) if (!qemu_file_rate_limit(s->file)) { DPRINTF("iterate\n"); pending_size = qemu_savevm_state_pending(s->file, max_size); - DPRINTF("pending size %lu max %lu\n", pending_size, max_size); + DPRINTF("pending size %" PRIu64 " max %" PRIu64 "\n", + pending_size, max_size); if (pending_size && pending_size >= max_size) { qemu_savevm_state_iterate(s->file); } else { -- 1.8.3.1