Fixed the block count in error message about read attempt after medium end

This commit is contained in:
Thomas Schmitt 2017-07-15 21:42:27 +02:00
parent 2bb8bf470d
commit 113f5873cb
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2017.02.06.161439" #define Cdrskin_timestamP "2017.07.15.194129"

View File

@ -498,7 +498,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
sprintf(msg, sprintf(msg,
"Read start address %ds larger than number of readable blocks %d", "Read start address %ds larger than number of readable blocks %d",
(int) (byte_address / 2048 + !!(byte_address % 2048)), (int) (byte_address / 2048 + !!(byte_address % 2048)),
d->media_read_capacity); d->media_read_capacity + 1);
libdax_msgs_submit(libdax_messenger, d->global_index, libdax_msgs_submit(libdax_messenger, d->global_index,
0x00020172, (flag & 32) ? 0x00020172, (flag & 32) ?
LIBDAX_MSGS_SEV_DEBUG : LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_SEV_DEBUG : LIBDAX_MSGS_SEV_SORRY,