From patchwork Fri Sep 14 08:42:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 183867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 319022C0040 for ; Fri, 14 Sep 2012 20:16:42 +1000 (EST) Received: from localhost ([::1]:38480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRVj-0003dT-1o for incoming@patchwork.ozlabs.org; Fri, 14 Sep 2012 04:44:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRUM-0002Jc-Sj for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCRUK-0007bG-QF for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:43:02 -0400 Received: from mail-wg0-f53.google.com ([74.125.82.53]:61607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRUK-0007aq-JP for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:43:00 -0400 Received: by mail-wg0-f53.google.com with SMTP id dr1so367652wgb.10 for ; Fri, 14 Sep 2012 01:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=wf47g5P9eRjwYazC6YT9mHFWigvkHTV5hjghEIp1oqs=; b=NPBFimJbRvnhfDqCgUDTfzyYApwJEjyatW1IbO2xjijAlmC8EVqg/0lbxnxj4p/bKc rUaK0/UHKPReP7nBJqvA8ylBbAu3JHM6BtXOcAnnvSSAQGp8e+fejHZvDJqtykiXaA2y Si4t94nw8f+5O0iDlsFmPiOlpLFBNIkEAxKD0dwPVusQtOgG5xx2XsJLd4c+VPGphVI6 rWQiFWwDUev19oU8NZTh9IuGzJTGMmq8yOmjjE0XpCRKEi6r26vR7Vla6QXod/46g+YY GacAkzIcm6UQIRFLxUiTFDTNTaDlAwKpxyufD2ksgTkjpDKHQ0HVFt8hyblCzUkHdk59 5ZOA== Received: by 10.216.236.163 with SMTP id w35mr1150011weq.13.1347612180198; Fri, 14 Sep 2012 01:43:00 -0700 (PDT) Received: from localhost ([109.224.133.37]) by mx.google.com with ESMTPS id h9sm17854549wiz.1.2012.09.14.01.42.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 01:42:59 -0700 (PDT) From: Stefan Hajnoczi To: Anthony Liguori Date: Fri, 14 Sep 2012 09:42:25 +0100 Message-Id: <1347612146-5407-12-git-send-email-stefanha@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1347612146-5407-1-git-send-email-stefanha@gmail.com> References: <1347612146-5407-1-git-send-email-stefanha@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.53 Cc: Stefan Hajnoczi , Igor Mitsyanko , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 11/12] arch_init.c: add missing '%' symbols before PRIu64 in debug printfs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Igor Mitsyanko '%' symbols were missing in front of PRIu64 macros in DPRINTF() messages in arch_init.c, this caused compilation warnings when compiled with DEBUG_ARCH_INIT defined. Signed-off-by: Igor Mitsyanko Signed-off-by: Stefan Hajnoczi --- arch_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch_init.c b/arch_init.c index 5a1173e..47977de 100644 --- a/arch_init.c +++ b/arch_init.c @@ -562,7 +562,7 @@ static int ram_save_iterate(QEMUFile *f, void *opaque) if ((i & 63) == 0) { uint64_t t1 = (qemu_get_clock_ns(rt_clock) - bwidth) / 1000000; if (t1 > MAX_WAIT) { - DPRINTF("big wait: " PRIu64 " milliseconds, %d iterations\n", + DPRINTF("big wait: %" PRIu64 " milliseconds, %d iterations\n", t1, i); break; } @@ -587,7 +587,7 @@ static int ram_save_iterate(QEMUFile *f, void *opaque) expected_time = ram_save_remaining() * TARGET_PAGE_SIZE / bwidth; - DPRINTF("ram_save_live: expected(" PRIu64 ") <= max(" PRIu64 ")?\n", + DPRINTF("ram_save_live: expected(%" PRIu64 ") <= max(%" PRIu64 ")?\n", expected_time, migrate_max_downtime()); if (expected_time <= migrate_max_downtime()) { @@ -799,8 +799,8 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) } while (!(flags & RAM_SAVE_FLAG_EOS)); done: - DPRINTF("Completed load of VM with exit code %d seq iteration " PRIu64 "\n", - ret, seq_iter); + DPRINTF("Completed load of VM with exit code %d seq iteration " + "%" PRIu64 "\n", ret, seq_iter); return ret; }