From nobody Fri Dec 19 04:29:33 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1598607155; cv=none; d=zohomail.com; s=zohoarc; b=i5nX18E4XdtLw8zKRMwx9Np+SrH6aewl6xg029Ik/lGlYlQpNUTTFCOyv0YvOx+htOgi6MO5LEoTwsP/USZn6YTZVqhfz5Wo1AIEEzHS9prSl9va+s21661D+ZJxZlqmXo8KzEhikpbcfCZ7FD4m3vdf9+q0eAE4Vu3+JNGKQRg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598607155; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fxmRf5DVdkRrGvUUcEHoxUAm6QSXXwocckAawvaTPHc=; b=IvuwlWc7C0jmaW4KwoWU7qGXmpKzDFsXAZ8huujRW1VFI3Au0IN3ziJ3R6+TdIsdXNkKellrdsbshrDLhefc8ausonAMTKUx8WxqLxo+S1sZ54MekKe+AlB100nnsjiwgv2QwPpZocUe7TuWX/PGSOclisV2zihYjs/CewHZjK0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159860715585325.12172359360079; Fri, 28 Aug 2020 02:32:35 -0700 (PDT) Received: from localhost ([::1]:60020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBakM-00027s-IG for importer@patchew.org; Fri, 28 Aug 2020 05:32:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBace-0004Sf-SA for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:36 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:34753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBacd-0004IT-5b for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:36 -0400 Received: by mail-wm1-x342.google.com with SMTP id c19so441919wmd.1 for ; Fri, 28 Aug 2020 02:24:34 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id t13sm912304wru.65.2020.08.28.02.24.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 02:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=fxmRf5DVdkRrGvUUcEHoxUAm6QSXXwocckAawvaTPHc=; b=QgjpOkheEcfJN8uveTmsCP08/sGn/SnT2VXS2GRy0VE6udOfZZyYSxuBFfqR8AkcZv BGoiexnoeGjTSNuUb5R8BL6ooQLfMIypN0VA9rG3cSZX1X5fwFajAyyNY1E8q0KnLShA xeUed+zeQEEhR+foSF55ui7MDc1uT1P7+2fyCQyZILlwNldOBngCVHKrHZc/OguACioA ObQOO9Yy4o/V1l7CueE13fGrl+M63KuXH4Fnsb3b0bwgABNdPvtu5HxWoQnUkqso+oD4 z0nYuj/eaHFa5+LXLJH+wvD0PvKttqkSKByJJyg27RZ9ej1uTfoYFuGw4Nvj8NccIB7u ySVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fxmRf5DVdkRrGvUUcEHoxUAm6QSXXwocckAawvaTPHc=; b=oUZNoy54xxKqNLJz4BDT9xnT/FzXEFFDIGMb+O7Px3a0K4lev3XCuycbPfam0p51Qb xhmcl6/BNPbKeJXI8xGZRZX9Gq/nOH/T2Ej95a0nLDPKYQq4/DJ9seXZ42jmCbZzLqCc 3IGBLRfLL+Z0dwDp+wqZIyqtYTWHShGQyAzC8iAtKfrs7rKEH2Yku0DMl2gWV50o6axl qPMyPBw4piTonbH+VLOEIbWH4LjCweoZ7xtwWMM64IGoxnIAqfMO9R9yOF9QyOlkrhcI +sJal7vr61BF3MdSOZxIDbuzCIVvYBmqad+juND4XWAdXaGD/PbP+9IPgVKPVMmWIICt LoTg== X-Gm-Message-State: AOAM531W/mqxEvLrLh2aq+niCIV8m6k5Negy6zeNP2Km6bh5pBG+eRn7 hMQLuowu1/IGyGmV0oLBPAkBpGTkxUbqDGCA X-Google-Smtp-Source: ABdhPJyWtABsSKxx+AwHTwYjR2QTTBg5WijGY/PrMYsEnzrw89liN5PxiQSoNgHP8gCXVDm6r7iCCQ== X-Received: by 2002:a05:600c:214e:: with SMTP id v14mr759798wml.118.1598606673619; Fri, 28 Aug 2020 02:24:33 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 16/35] hw/misc/unimp: Display the value with width of the access size Date: Fri, 28 Aug 2020 10:23:54 +0100 Message-Id: <20200828092413.22206-17-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200828092413.22206-1-peter.maydell@linaro.org> References: <20200828092413.22206-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::342; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x342.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Philippe Mathieu-Daud=C3=A9 To quickly notice the access size, display the value with the width of the access (i.e. 16-bit access is displayed 0x0000, while 8-bit access 0x00). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20200812190206.31595-3-f4bug@amsat.org Signed-off-by: Peter Maydell --- hw/misc/unimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/unimp.c b/hw/misc/unimp.c index ee2e536c8b1..b4b318db1c3 100644 --- a/hw/misc/unimp.c +++ b/hw/misc/unimp.c @@ -35,8 +35,8 @@ static void unimp_write(void *opaque, hwaddr offset, =20 qemu_log_mask(LOG_UNIMP, "%s: unimplemented device write " "(size %d, offset 0x%" HWADDR_PRIx - ", value 0x%" PRIx64 ")\n", - s->name, size, offset, value); + ", value 0x%0*" PRIx64 ")\n", + s->name, size, offset, size << 1, value); } =20 static const MemoryRegionOps unimp_ops =3D { --=20 2.20.1