Manos Pitsidianakis 954b33daee hw/block/block.c: improve confusing blk_check_size_and_read_all() error
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.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-id: 7260eadff22c08457740117c1bb7bd2b4353acb9.1706598705.git.manos.pitsidianakis@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2024-01-30 16:19:00 -05:00
..
2023-10-23 14:45:29 -07:00
2024-01-26 12:23:04 +00:00
2023-10-18 10:10:49 +02:00
2023-11-07 13:08:49 +01:00
2023-12-20 10:29:23 +01:00
2024-01-05 16:20:15 +01:00
2023-09-08 13:08:52 +03:00
2023-12-30 07:38:06 +11:00
2023-09-08 13:08:52 +03:00
2023-03-20 12:43:50 +01:00