Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp83245lqj; Wed, 10 Apr 2024 04:59:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm/Z6DqgXavtBbhPp7DmzVhsVWtHrO+1J5FAjp/ha8IcZryfSlMwRn6mKsG7pVeW6Jm+5cDp9pxklhE3522Wceal922NUvASaKFqa9SA== X-Google-Smtp-Source: AGHT+IEvYrgLI83vZ9iY7c0Wjb0mxozJ1kWdm7n4ZjC6wbZ/xioVspnBKhYbzvnz/4rWzwmLmQ40 X-Received: by 2002:ad4:5aaf:0:b0:699:1ff2:9a09 with SMTP id u15-20020ad45aaf000000b006991ff29a09mr3005568qvg.24.1712750357809; Wed, 10 Apr 2024 04:59:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712750357; cv=pass; d=google.com; s=arc-20160816; b=m6d57ab6voN3oGnZU3l7MrT77Btg1htAY8x64Xt6Q5Cni18Who++8dg0EQW0CH7gOK r1f7JfQ3pa8Q2lc4cnb5dFQH0piEetZ3b6PHcdsdwK539VYfp9Mmvz8y/E1AR88Oyzyi T1wEz/ipXeI294xU9816EHRQOJjEgi3S5fhq6+WNIkuliOmHUISSZVqvS21ddTV/UnKc R/DSE7rvukqdmtTcFC9ZyKc5YrBWDyi/fPmSefmeq5/TQYHDiQvOOqyiHSybAhKpAPW+ 58jWNto89YvHll0t9h46RjZ8mCxkoADm09TMhPfdVvqbd+Oj1fgljvOmx2BtvWOdxf6v u9wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=O0FtPRNr9ZssL3TtqGhn4R+WXzqTC+im2HTaQjuhFms=; fh=4UecbEpuXn5y8qMJtWpudMZ2PcXXnyh9KuIoVvKTnfQ=; b=lWBxLtH0sAUWjYXJrus+mSo2/Ri2obeJuNP8bUNlSV4/2ua8I9+Ngip+b6iljcX9oh BF9aT5NS3UkrRaEDRd1dGANsVcF7qQqTTMXL5iEagCi5B1PhENiW/EWnPquR1UfkFqKM aK0UYS2WJqX2+lWoPQPzR5qTBXOefHjcK8pHgaa6ynF4D+BJDwSa9tj0IQJXIfEFk8Ji +oBdaT3f4wU9P0ItAskpKG7JNUPQuzgFxYZcSrBBxDWyv2GrxHmOKpDtJCkWkd8ULI6x k0SI39k3vU0sRxT0G4+3BHVRc+yvUYGfUD5ows7K2KHVzo5E2QaQbRUHi8fcwO97jCQj VShw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t5pvV5Zz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qd24-20020ad44818000000b00699383746dasi12771642qvb.557.2024.04.10.04.59.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t5pvV5Zz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8705D1C22C92 for ; Wed, 10 Apr 2024 11:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6731215B576; Wed, 10 Apr 2024 11:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t5pvV5Zz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94B1C15ADB6 for ; Wed, 10 Apr 2024 11:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712750326; cv=none; b=Mg2ZonSeBr2DObEyeoIf7Io4BcUjEuyJoc9UJ8wBM9LNY6vxQqctEwvuuPt1R+s4EDBdvJwzv8rFSU57Vv9eRdJAGK3e1pmyrI1T1D2e1tm2me1+DAirdIoTeaDDJYIbdwjtJStLuxJO6kEiE0E7IGXSXzZzjVaCCrGXMLuf9Y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712750326; c=relaxed/simple; bh=I0ucffUjI9S2cz08Ial3I81TqrYvCDbjo9pZBliGHHs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=inI1TpQA9XLWPXg1yRRRNmQ/6ejTF4GjVV2de3ccX3DMH+8S6pvmw7mY3qdUIp4Soc0mlUHA4y/Z/G+tr+k1X1QemYsMjPMozfKk9lbJkG8TnZ/YZhxOQpsAovrYqVPKMk4Ea5tv2DImSAjVsZsHd8mpeE4Is6O5qHwBHTWEjTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t5pvV5Zz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 224EEC43390; Wed, 10 Apr 2024 11:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712750326; bh=I0ucffUjI9S2cz08Ial3I81TqrYvCDbjo9pZBliGHHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t5pvV5ZzYr/RzporQ5oxS0aMfiV+V0q4Y2GxhgF1z79jFoCE0gBmPkJy7lhMoquBE x5z4w5o7IMU/EeUHyW97iTep8pYcNF6KIh+C6IB1CYcLFVxgjZNCMMTbCIvMFB+BwK Szme+Lh+6kyqU/xCcuo6woWbxG6NduD1jomFGw6DXp9AdBzEZ/tjEm8rGLIakgd0RY npZInp/oD3QhFqLgV5ZO/OlqiFRHKixUjPiQCLE4yCKluiRNE6DxYAHJqYLS8Chb01 R6SpQ+opJhACIPLeF7JZyq61Arnb3jTq/ZCsAu1QCNK1g8CO+Q5qModKWlw/T5WglX 0v98rHwxKfdJA== From: Conor Dooley To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , Daire McNamara , Cyril Jean , linux-kernel@vger.kernel.org Subject: [PATCH v1 3/5] firmware: microchip: clarify that sizes and addresses are in hex Date: Wed, 10 Apr 2024 12:58:06 +0100 Message-ID: <20240410-elk-staleness-285063ef0433@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410-opulently-epic-8654bdac3422@spud> References: <20240410-opulently-epic-8654bdac3422@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2012; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=BNSIAOq6X1LAhr9L0BQrr3EsDDjmIu+xC/kpYkZfVl4=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDGlidVfOqLZ/vnLjSxXD8h3G/DkLbvKtbNCIX7r23GEmu ZX9mnmSHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZgImxEjw9U517olFpwtyuQL X5PH7H3p4OtWvTtsN/foftl8pObDp7cM/5PmMj+azXDi/pYJrpMub31nvWG+4a3j7w7zqk1h1wz beJQFAA== X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley As it says on the tin. It can be kinda confusing when "22830" is in hex, so prefix the hex numbers with a "0x". Signed-off-by: Conor Dooley --- drivers/firmware/microchip/mpfs-auto-update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/microchip/mpfs-auto-update.c b/drivers/firmware/microchip/mpfs-auto-update.c index 298ad21e139b..078ff328f261 100644 --- a/drivers/firmware/microchip/mpfs-auto-update.c +++ b/drivers/firmware/microchip/mpfs-auto-update.c @@ -279,7 +279,7 @@ static int mpfs_auto_update_set_image_address(struct mpfs_auto_update_priv *priv AUTO_UPDATE_DIRECTORY_WIDTH); memset(buffer + AUTO_UPDATE_BLANK_DIRECTORY, 0x0, AUTO_UPDATE_DIRECTORY_WIDTH); - dev_info(priv->dev, "Writing the image address (%x) to the flash directory (%llx)\n", + dev_info(priv->dev, "Writing the image address (0x%x) to the flash directory (0x%llx)\n", image_address, directory_address); ret = mtd_write(priv->flash, 0x0, erase_size, &bytes_written, (u_char *)buffer); @@ -342,7 +342,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const erase.len = round_up(size, (size_t)priv->flash->erasesize); erase.addr = image_address; - dev_info(priv->dev, "Erasing the flash at address (%x)\n", image_address); + dev_info(priv->dev, "Erasing the flash at address (0x%x)\n", image_address); ret = mtd_erase(priv->flash, &erase); if (ret) goto out; @@ -352,7 +352,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const * will do all of that itself - including verifying that the bitstream * is valid. */ - dev_info(priv->dev, "Writing the image to the flash at address (%x)\n", image_address); + dev_info(priv->dev, "Writing the image to the flash at address (0x%x)\n", image_address); ret = mtd_write(priv->flash, (loff_t)image_address, size, &bytes_written, data); if (ret) goto out; -- 2.43.0