Reporting with severity DEBUG about read error messages during image loading

This commit is contained in:
Thomas Schmitt 2014-09-23 06:47:05 +00:00
parent ff81fc2028
commit e77ea00398
3 changed files with 4 additions and 4 deletions

View File

@ -1327,7 +1327,7 @@ int isoburn_read_iso_head(struct burn_drive *d, int lba,
if(to_read >= (off_t) (64 * 1024))
to_read= 64 * 1024;
ret = burn_read_data(d, ((off_t) lba) * (off_t) 2048, (char *) buffer,
to_read, &data_count, 2); /* no error messages */
to_read, &data_count, 32); /* error messages as DEBUG */
} else
ret= 0;
if(ret<=0)

View File

@ -470,7 +470,7 @@ static int isoburn_inspect_partition(struct isoburn *o, uint32_t img_size,
/* Is there a PVD at the partition start ? */
ret = burn_read_data(o->drive, (off_t) (offst + 16) * (off_t) 2048,
(char*) buf, 2048, &data_count, 2);
(char*) buf, 2048, &data_count, 32);
if(ret <= 0)
{ret= 2; goto ex;}
pvm = (struct ecma119_pri_vol_desc *) buf;
@ -565,7 +565,7 @@ int isoburn_start_emulation(struct isoburn *o, int flag)
if(capacity > 0 && (off_t) capacity * (off_t) 2048 < to_read)
to_read = (off_t) capacity * (off_t) 2048;
ret = burn_read_data(drive, (off_t) 0, (char*)o->target_iso_head,
to_read, &data_count, 2 | 8);
to_read, &data_count, 32 | 8);
if (ret <= 0) {
/* an error means a disc with no ISO image */
o->media_read_error= 1;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2014.09.23.064407"
#define Xorriso_timestamP "2014.09.23.064554"