From patchwork Fri Aug 23 17:34:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 19499 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2AF1023A4E for ; Fri, 23 Aug 2013 17:34:24 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m12sf688630yen.9 for ; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=oudxMNW3BdXT6xgUVJKEANyHsPknoN1KbGfG9SYRe9k=; b=b294CbK4juhZ55wortTha9clt9eQatd9Y+qCCSYnmNAr58NiAsVTCPXm2vj9Gl2u7p +OB5b4R4UAAudc79ZIM3gjFPmLW6tlJTgZnO++BIDJjRQky7juQ5IiOTiNkPjoeJOdR2 h6hwFntFAfeZkTWiwk1lC08Iu8rU2zrR1AxSWIZYgyEebdAyn5mfOPM65IE5PCnj8GCd pfMAxpmez/0BBsMvl3E+V6ziODLpAyMES1tj+J46b+4ulkt+w1OJb3vh+h+FmeWTO2TF FG28wF5nGXRU8D4hVEgzPxEDNStmAs0odJ+PZ+66RPZTgFHz77027bRU5Qpp1H12O22Q GVPw== X-Received: by 10.236.142.38 with SMTP id h26mr252076yhj.57.1377279263412; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.27.195 with SMTP id v3ls1662827qeg.6.gmail; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) X-Received: by 10.220.48.194 with SMTP id s2mr3569vcf.43.1377279263239; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id mq14si267801vcb.56.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 10:34:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id w16so615813vbb.22 for ; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) X-Gm-Message-State: ALoCoQmiBgOWF1zCM/knUgcai6UczM9NIp3C7KzyN+bNUZyc7bPJ8Zu59YV40MM168WhUJSpLYWn X-Received: by 10.52.92.15 with SMTP id ci15mr409945vdb.34.1377279263129; Fri, 23 Aug 2013 10:34:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp105531vcz; Fri, 23 Aug 2013 10:34:22 -0700 (PDT) X-Received: by 10.66.150.97 with SMTP id uh1mr80212pab.118.1377279261626; Fri, 23 Aug 2013 10:34:21 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id ua7si1040019pac.88.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 10:34:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w10so942390pde.9 for ; Fri, 23 Aug 2013 10:34:20 -0700 (PDT) X-Received: by 10.69.0.129 with SMTP id ay1mr986957pbd.12.1377279260739; Fri, 23 Aug 2013 10:34:20 -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 w8sm2360439paj.4.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 10:34:19 -0700 (PDT) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, kvmarm@lists.cs.columbia.edu, Christoffer Dall Subject: [PATCH v2] migration: Fix debug print type Date: Fri, 23 Aug 2013 10:34:16 -0700 Message-Id: <1377279256-4303-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Reviewed-by: Juan Quintela --- [Changelog v1 -> v2]: - Use PRIu64 instead of %llu migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 1402fa7..e9b83f6 100644 --- a/migration.c +++ b/migration.c @@ -566,7 +566,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 {