From patchwork Wed Apr 3 04:09:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 233215 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 8C0502C0121 for ; Wed, 3 Apr 2013 15:10:57 +1100 (EST) Received: from localhost ([::1]:55678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNF2F-0005EI-0g for incoming@patchwork.ozlabs.org; Wed, 03 Apr 2013 00:10:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNF1l-00059m-4d for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:10:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNF1j-0007jm-Uv for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:10:25 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:51235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNF1j-0007jb-Pi for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:10:23 -0400 Received: by mail-pd0-f172.google.com with SMTP id 5so612160pdd.31 for ; Tue, 02 Apr 2013 21:10:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state; bh=o7l55WJAHmDdJovZKpSpHZcXvKVAbMEldV8DyGns0Tg=; b=QhbjELfnZK4TPgByrKM1bPe+I8DW30p8rfH9SgHeb7rBMRyqXADgexkL+LhYrmhsul 5A5KO31CwFLy2F68oEYPI28K/I5vqsBKS0UmMhjWWbESrAgHs4vYf8rSsZ1zJWWny0d0 oGGQXSV679mHOeFepednaDaqHqr02e0yzBHmmj5dUP6C3TmRaTToox6+2V55Q3KYnaaM 3tB8ENxlhTt6cBAgQKAv+DJdX9u1RjTtA+GIoDsbuuLBmiDNQLL9V7+MEItZFmV1PdlU DRcchsFRZRwV7+oJBSSHqOysmn9wPjseEXV7mSUpPtcBbJ4nR6UBRL5wmqwDadgoPR8E WNAQ== X-Received: by 10.66.176.205 with SMTP id ck13mr918538pac.50.1364962223170; Tue, 02 Apr 2013 21:10:23 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPS id mz8sm4261577pbc.9.2013.04.02.21.10.20 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 02 Apr 2013 21:10:22 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Date: Wed, 3 Apr 2013 14:09:16 +1000 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnR6lHC8alUvT6gB3RIg13GBgJN9Dljs7KLjZ9iA1VXJNgk1YgT+d2s8MV0YVqC0u0ZjgAC X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.192.172 Cc: Peter Crosthwaite Subject: [Qemu-devel] [PATCH v1 1/4] m25p80: Fix debug messages. 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 Some dodgy casts were making a mess of these msgs. Signed-off-by: Peter Crosthwaite --- hw/m25p80.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/m25p80.c b/hw/m25p80.c index 55e9d0d..34b476b 100644 --- a/hw/m25p80.c +++ b/hw/m25p80.c @@ -538,15 +538,15 @@ static uint32_t m25p80_transfer8(SSISlave *ss, uint32_t tx) switch (s->state) { case STATE_PAGE_PROGRAM: - DB_PRINT("page program cur_addr=%lx data=%x\n", s->cur_addr, - (uint8_t)tx); + DB_PRINT("page program cur_addr=%lx data=%x\n", (unsigned)s->cur_addr, + (unsigned)(uint8_t)tx); flash_write8(s, s->cur_addr, (uint8_t)tx); s->cur_addr++; break; case STATE_READ: r = s->storage[s->cur_addr]; - DB_PRINT("READ 0x%lx=%x\n", s->cur_addr, r); + DB_PRINT("READ 0x%lx=%x\n", (unsigned)s->cur_addr, (unsigned)r); s->cur_addr = (s->cur_addr + 1) % s->size; break;