From patchwork Sun Sep 25 18:14:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antony Pavlov X-Patchwork-Id: 116314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7AEB9B6F67 for ; Mon, 26 Sep 2011 04:15:01 +1000 (EST) Received: from localhost ([::1]:41279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7tE9-0006tQ-1L for incoming@patchwork.ozlabs.org; Sun, 25 Sep 2011 14:14:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]:45263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7tE3-0006t5-9H for qemu-devel@nongnu.org; Sun, 25 Sep 2011 14:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7tE2-0005Nr-DQ for qemu-devel@nongnu.org; Sun, 25 Sep 2011 14:14:51 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:56833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7tE2-0005Nj-8S; Sun, 25 Sep 2011 14:14:50 -0400 Received: by fxh13 with SMTP id 13so5474248fxh.4 for ; Sun, 25 Sep 2011 11:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=/CoW9ZLgXXssJmsG9q1ClsVwcdu0onzxE8rKVimD0pU=; b=pltuW0Bcs6e70KEvTSCPEsJnygYbQ5hnLX6kNSfmEQU9MLIKjIlcCOzyRr6qGNKwLw 5iLMC51PDLatd3mZn92Iu1VPtgms0PJpzr24I0p8yCmFH4wJ7YqN2I3DOQzAT+07ZtR/ fPK2csiGp8jBctdcyrTMmmrZzuNkj3Lv4NjZ4= Received: by 10.223.97.220 with SMTP id m28mr9190809fan.20.1316974488553; Sun, 25 Sep 2011 11:14:48 -0700 (PDT) Received: from localhost.localdomain (ppp95-165-19-215.pppoe.spdop.ru. [95.165.19.215]) by mx.google.com with ESMTPS id j5sm15530351fac.25.2011.09.25.11.14.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Sep 2011 11:14:47 -0700 (PDT) From: Antony Pavlov To: qemu-devel@nongnu.org Date: Sun, 25 Sep 2011 22:14:42 +0400 Message-Id: <1316974483-16947-1-git-send-email-antonynpavlov@gmail.com> X-Mailer: git-send-email 1.7.5.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.45 Cc: qemu-trivial@nongnu.org, Antony Pavlov , Aurelien Jarno Subject: [Qemu-devel] [PATCH 1/2] gt64xxx.c: fix length modifier in DPRINTF format string 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 commit fc2bf44972349b078d8310466c3866615500e67f changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so we need to change the corresponding length modifier from '%x' to '%llx'. Signed-off-by: Antony Pavlov --- hw/gt64xxx.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index c7df8c4..0baa320 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -543,19 +543,19 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, /* not really implemented */ s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val & 0xfffffffe)); s->regs[saddr] |= !!(s->regs[saddr] & 0xfffffffe); - DPRINTF("INTRCAUSE %x\n", val); + DPRINTF("INTRCAUSE %llx\n", val); break; case GT_INTRMASK: s->regs[saddr] = val & 0x3c3ffffe; - DPRINTF("INTRMASK %x\n", val); + DPRINTF("INTRMASK %llx\n", val); break; case GT_PCI0_ICMASK: s->regs[saddr] = val & 0x03fffffe; - DPRINTF("ICMASK %x\n", val); + DPRINTF("ICMASK %llx\n", val); break; case GT_PCI0_SERR0MASK: s->regs[saddr] = val & 0x0000003f; - DPRINTF("SERR0MASK %x\n", val); + DPRINTF("SERR0MASK %llx\n", val); break; /* Reserved when only PCI_0 is configured. */