Re: [PATCH 2/2] hw/block/block.c: improve confusing blk_check_size_and_read_all() error

2024-01-23 Thread Philippe Mathieu-Daudé
On 23/1/24 09:09, Manos Pitsidianakis wrote: In cases where a device tries to read more bytes than the block device contains, the error is vague: "device requires X bytes, block backend provides Y bytes". This patch changes the errors of this function to include the block backend name, the

[PATCH 2/2] hw/block/block.c: improve confusing blk_check_size_and_read_all() error

2024-01-23 Thread Manos Pitsidianakis
In cases where a device tries to read more bytes than the block device contains, the error is vague: "device requires X bytes, block backend provides Y bytes". This patch changes the errors of this function to include the block backend name, the device id and device type name where appropriate.