diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-02-15 17:17:43 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-02-15 17:20:39 +0000 |
commit | cf9ad00afcd6d8873fbefbbaf1f0813948a796ba (patch) | |
tree | 715e5496e4f68edebbfca00d88b8c9dd3698c65a | |
parent | 76a286530a8b5bdbab81c3851b851dea2da32114 (diff) | |
download | ipxe-cf9ad00afcd6d8873fbefbbaf1f0813948a796ba.zip ipxe-cf9ad00afcd6d8873fbefbbaf1f0813948a796ba.tar.gz ipxe-cf9ad00afcd6d8873fbefbbaf1f0813948a796ba.tar.bz2 |
[efi] Fix debug message when reading from EFI virtual files
Show the requested range when a caller reads from a virtual file via
the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL interface.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/interface/efi/efi_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_file.c b/src/interface/efi/efi_file.c index fc64b36..7ed3ea5 100644 --- a/src/interface/efi/efi_file.c +++ b/src/interface/efi/efi_file.c @@ -528,7 +528,7 @@ static EFI_STATUS EFIAPI efi_file_read ( EFI_FILE_PROTOCOL *this, /* Read from the file */ DBGC ( file, "EFIFILE %s read [%#08zx,%#08zx)\n", - efi_file_name ( file ), pos, file->pos ); + efi_file_name ( file ), pos, ( ( size_t ) ( pos + *len ) ) ); *len = file->read ( &reader ); assert ( ( pos + *len ) == file->pos ); |