Skip to content

Commit 3aa20d1

Browse files
committed
firmware: microchip: clarify that sizes and addresses are in hex
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 <[email protected]>
1 parent 6e3b7e8 commit 3aa20d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/firmware/microchip/mpfs-auto-update.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int mpfs_auto_update_set_image_address(struct mpfs_auto_update_priv *priv
267267
AUTO_UPDATE_DIRECTORY_WIDTH);
268268
memset(buffer + AUTO_UPDATE_BLANK_DIRECTORY, 0x0, AUTO_UPDATE_DIRECTORY_WIDTH);
269269

270-
dev_info(priv->dev, "Writing the image address (%x) to the flash directory (%llx)\n",
270+
dev_info(priv->dev, "Writing the image address (0x%x) to the flash directory (0x%llx)\n",
271271
image_address, directory_address);
272272

273273
ret = mtd_write(priv->flash, 0x0, erase_size, &bytes_written, (u_char *)buffer);
@@ -315,7 +315,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const
315315
erase.len = round_up(size, (size_t)priv->flash->erasesize);
316316
erase.addr = image_address;
317317

318-
dev_info(priv->dev, "Erasing the flash at address (%x)\n", image_address);
318+
dev_info(priv->dev, "Erasing the flash at address (0x%x)\n", image_address);
319319
ret = mtd_erase(priv->flash, &erase);
320320
if (ret)
321321
goto out;
@@ -325,7 +325,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const
325325
* will do all of that itself - including verifying that the bitstream
326326
* is valid.
327327
*/
328-
dev_info(priv->dev, "Writing the image to the flash at address (%x)\n", image_address);
328+
dev_info(priv->dev, "Writing the image to the flash at address (0x%x)\n", image_address);
329329
ret = mtd_write(priv->flash, (loff_t)image_address, size, &bytes_written, data);
330330
if (ret)
331331
goto out;

0 commit comments

Comments
 (0)