Commit 113f5873 authored by Thomas Schmitt's avatar Thomas Schmitt

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

parent 2bb8bf47
#define Cdrskin_timestamP "2017.02.06.161439"
#define Cdrskin_timestamP "2017.07.15.194129"
......@@ -498,7 +498,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
sprintf(msg,
"Read start address %ds larger than number of readable blocks %d",
(int) (byte_address / 2048 + !!(byte_address % 2048)),
d->media_read_capacity);
d->media_read_capacity + 1);
libdax_msgs_submit(libdax_messenger, d->global_index,
0x00020172, (flag & 32) ?
LIBDAX_MSGS_SEV_DEBUG : LIBDAX_MSGS_SEV_SORRY,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment