From 825a087513882369bf98e1f2296ad70a9b0577d0 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 16 Apr 2008 08:22:14 +0000 Subject: [PATCH] Made burn_read_data() obey its flag bit1 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/read.c | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 8f27fe26..204b4e5a 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.04.15.094133" +#define Cdrskin_timestamP "2008.04.16.082208" diff --git a/libburn/trunk/libburn/read.c b/libburn/trunk/libburn/read.c index c82b05cd..f9656620 100644 --- a/libburn/trunk/libburn/read.c +++ b/libburn/trunk/libburn/read.c @@ -464,14 +464,13 @@ int burn_read_data(struct burn_drive *d, off_t byte_address, wpt += 2048; *data_count += 2048; } - - libdax_msgs_submit(libdax_messenger, - d->global_index, - 0x00020000, - LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH, - "burn_read_data() returns 0", - 0, 0); - + if (!(flag & 2)) + libdax_msgs_submit(libdax_messenger, + d->global_index, + 0x00020000, + LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH, + "burn_read_data() returns 0", + 0, 0); ret = 0; goto ex; } memcpy(wpt, d->buffer->data, cpy_size);