From patchwork Fri Jan 13 06:28:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jitindar Singh X-Patchwork-Id: 9514683 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 802E860762 for ; Fri, 13 Jan 2017 06:51:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7064128601 for ; Fri, 13 Jan 2017 06:51:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631A728626; Fri, 13 Jan 2017 06:51:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1359228601 for ; Fri, 13 Jan 2017 06:51:30 +0000 (UTC) Received: from localhost ([::1]:39415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvhx-0001TA-7d for patchwork-qemu-devel@patchwork.kernel.org; Fri, 13 Jan 2017 01:51:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvMa-0006Zv-Af for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRvMZ-00027a-Eo for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:24 -0500 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:36059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRvMX-00025X-86; Fri, 13 Jan 2017 01:29:21 -0500 Received: by mail-pf0-x242.google.com with SMTP id b22so6877334pfd.3; Thu, 12 Jan 2017 22:29:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zTBpmvte73jIHb2sJYCJlL6X5FQSdhbPQpChJJnLpOo=; b=pGCY4AcOc2ncUih3mGu4hjXf51pfJaG9So2ZHR0xap7pfEBZ/uHOwvwPVkHRgLdZXi VZQex/s9GOIlWuWLxbm/6jd6s9TuJ+2uXeuWLEXpeqo1gZdRVeHG3FKj31694S4f/RJs KUlrvSIX/LcrqYvwdCu4MoS9W6ACdWXKzBZz8hyJ9cDE8xfwZK/lX0rMg0scu8IFta3v RRdjaX23VzJzHGx3QUcWHI+qg3qrGL1XLmdpTkXMEkd3LHOkTEp420BNv4S+0OWM/67w YacA5fos/jN3lPbyRB7Q9BIFSPAkuVSmnQTWK3dzob/nLluIsVbqLQOdOkPTjWF/NidQ GDIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zTBpmvte73jIHb2sJYCJlL6X5FQSdhbPQpChJJnLpOo=; b=N2vdwrbGJcSRbkaeJSwwwh0p17e8nyKs6yqK8ErHFyxoL5E88bc/XMwSmA6ooiqlWJ HJPxBGR4ULgfvGROiHX/KG9z98PUaA0Afmqe74Q46K+BhZBm+5b21RMIxkwbbYOjiSnK SOF0EBN8ZuELoOtNhux6U8bGb0OJy1jxO29XY9igy697gjYaCq6wGi2ZNNL/KYbOMmHi ilh1RTc75eyZp9QwdC3MtBW0fPp8Fup4BO9F3512KqiI18e3uYJcmeiZgeZuKGYJfoXe Robd+C8COusKArQsjPJJ0mspvsaIQPcr5F33U8TXe2tOPVQt5peI+Lf2dOO7THL1bfCi i/rg== X-Gm-Message-State: AIkVDXJCx0KTGudHbEz6/Nx7mGh/kJVzdTeeusy/Reswb9bVGgPnZJKbyzMxsCmcsSNlgw== X-Received: by 10.84.143.68 with SMTP id 62mr27324775ply.63.1484288960279; Thu, 12 Jan 2017 22:29:20 -0800 (PST) Received: from dyn253.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r2sm26004999pfi.67.2017.01.12.22.29.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 22:29:19 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Fri, 13 Jan 2017 17:28:22 +1100 Message-Id: <1484288903-18807-17-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484288903-18807-1-git-send-email-sjitindarsingh@gmail.com> References: <1484288903-18807-1-git-send-email-sjitindarsingh@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::242 Subject: [Qemu-devel] [RFC PATCH 16/17] target/ppc/mmu_hash64: Fix printing unsigned as signed int X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, agraf@suse.de, Suraj Jitindar Singh , david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP We were printing an unsigned value as a signed value, fix this. Signed-off-by: Suraj Jitindar Singh --- target/ppc/mmu-hash64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/mmu-hash64.c b/target/ppc/mmu-hash64.c index 03607d5..08d2393 100644 --- a/target/ppc/mmu-hash64.c +++ b/target/ppc/mmu-hash64.c @@ -189,8 +189,8 @@ int ppc_store_slb(PowerPCCPU *cpu, target_ulong slot, slb->vsid = vsid; slb->sps = sps; - LOG_SLB("%s: %d " TARGET_FMT_lx " - " TARGET_FMT_lx " => %016" PRIx64 - " %016" PRIx64 "\n", __func__, slot, esid, vsid, + LOG_SLB("%s: " TARGET_FMT_lu " " TARGET_FMT_lx " - " TARGET_FMT_lx + " => %016" PRIx64 " %016" PRIx64 "\n", __func__, slot, esid, vsid, slb->esid, slb->vsid); return 0;