[PATCH] cmd: clone: report destination block number on dest write error

Tom Rini trini at konsulko.com
Sat Jul 11 02:17:22 CEST 2026


On Fri, 26 Jun 2026 09:15:42 +0530, Naveen Kumar Chaudhary wrote:

> The error path of the destination blk_dwrite() prints srcblk, which
> refers to the source device's block counter and is unrelated to the
> write that just failed. This produces misleading diagnostics that
> point at the wrong block on the wrong device when a clone aborts on
> a write error.
> 
> Print destblk so the message identifies the block that actually
> failed, mirroring the existing "Src read error @blk %ld" message
> above which correctly uses srcblk.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] cmd: clone: report destination block number on dest write error
      commit: dc3606a961fae711e51d0ec9e0cff7999b62ab2b
-- 
Tom




More information about the U-Boot mailing list