partitions: dos: prefix hex sector numbers with 0x
PATCH 1/1 partitions: dos: prefix hex sector numbers with 0x
The sector numbers are logged in hexadecimal format. This might not be immediately clear, so prefix the numbers with 0x.
Signed-off-by Bastian Krause <[email protected]>
--- common/partitions/dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
common/partitions/dos.c +2 -2
@@ -134,7 +134,7 @@ static void dos_extended_partition(struct block_device *blk, struct dos_partitiowhile (1 ) {int rc, i; -dev_dbg (blk->dev,"expect EBR in sector %x\n" , ebr_sector); +dev_dbg (blk->dev,"expect EBR in sector 0x%x\n" , ebr_sector); rc =block_read (blk, buf, ebr_sector,1 );if (rc !=0 ) {
@@ -144,7 +144,7 @@ static void dos_extended_partition(struct block_device *blk, struct dos_partitio/* sanity checks */ if (buf[0x1fe ] !=0x55 || buf[0x1ff ] !=0xaa ) { -dev_err (blk->dev,"sector %x doesn't contain an EBR signature\n" , ebr_sector); +dev_err (blk->dev,"sector 0x%x doesn't contain an EBR signature\n" , ebr_sector); goto out; }
Signature · 1 line
2.39.2
Sascha Hauer
AppliedQuoted 4 lines · Bastian Krause
The sector numbers are logged in hexadecimal format. This might not be immediately clear, so prefix the numbers with 0x.
Applied, thanks!
[1/1] partitions: dos: prefix hex sector numbers with 0x
https://git.pengutronix.de/cgit/barebox/commit/?id=f9dc2964a51f (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>