From patchwork Fri Aug 23 07:06:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 269304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8CF622C0090 for ; Fri, 23 Aug 2013 17:07:18 +1000 (EST) Received: from localhost ([::1]:35441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VClSl-0005us-RB for incoming@patchwork.ozlabs.org; Fri, 23 Aug 2013 03:07:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VClSQ-0005uc-4i for qemu-devel@nongnu.org; Fri, 23 Aug 2013 03:07:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VClSJ-0006Br-Ms for qemu-devel@nongnu.org; Fri, 23 Aug 2013 03:06:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VClSJ-0006BY-DQ for qemu-devel@nongnu.org; Fri, 23 Aug 2013 03:06:47 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx10so321069pab.27 for ; Fri, 23 Aug 2013 00:06:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=w2XJ+PYX4o79QSDtFgyuEA4ywBPo0BY56BAe9lFZn/s=; b=jTp+tEJcuXVbo4icUG6prGjw9uNRPbmnp45H3EcLL39GFHNenMNa5BgMfObrMiiwXa RkL9KNpoM62vi3sfU738YFYh1P09H5a6EkMPS7Jph30zxWuBQfHfwoZLfj3/qobLshrQ nm0tTaHvkzF5+nIYQ4iz4oTIJOmRkPP0/Rh8x+bwaC3bKQQewgvgzf+o4RRlPwApJpcx pDdi0C/IGHCkZBkYQ/51n/ex6Ij/ApbpsWmi57s+hqAvUJJ2hgKrfv8gkAK8A8fz0YLg ZBtCq839A0jjLvgOi85IJZSiXywzPOmen6OF4ObVRXXM9yzBXJl0zeh8YqYFrmurxk38 5lcQ== X-Gm-Message-State: ALoCoQmDGbB4gCstdIX5/STTz8IF85lX6pwn39rm88y9OGNeyw8DKmDxo1Je3NDPScbaHcQTopVy X-Received: by 10.66.120.145 with SMTP id lc17mr467077pab.182.1377241605924; Fri, 23 Aug 2013 00:06:45 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id xs1sm21493307pac.7.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 00:06:44 -0700 (PDT) From: Christoffer Dall To: qemu-devel@nongnu.org Date: Fri, 23 Aug 2013 00:06:41 -0700 Message-Id: <1377241601-29105-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.54 Cc: linaro-kernel@lists.linaro.org, kvmarm@lists.cs.columbia.edu, Christoffer Dall , patches@linaro.org Subject: [Qemu-devel] [PATCH] migration: Fix debug print type 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 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 --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 1402fa7..0d8706f 100644 --- a/migration.c +++ b/migration.c @@ -566,7 +566,7 @@ 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 %llu max %llu\n", pending_size, max_size); if (pending_size && pending_size >= max_size) { qemu_savevm_state_iterate(s->file); } else {