From 2cd90a608097e954e6aaf71c6296f6a8789ac50f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 7 Feb 2008 23:29:26 +0000 Subject: [PATCH] Added debug message in case of burn_read_data() return 0 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/read.c | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 27ca0fd3..18d004a1 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.02.06.230041" +#define Cdrskin_timestamP "2008.02.07.232820" diff --git a/libburn/trunk/libburn/read.c b/libburn/trunk/libburn/read.c index 8ad369d9..aa1863c6 100644 --- a/libburn/trunk/libburn/read.c +++ b/libburn/trunk/libburn/read.c @@ -334,7 +334,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address, if(log_fp == NULL) log_fp = fopen("/tmp/burn_read_data_log", "a"); if(log_fp!=NULL) - fprintf(log_fp, "%d\n", byte_address / 2048); + fprintf(log_fp, "%d\n", (int) (byte_address / 2048)); #endif /* Libburn_read_data_logginG */ @@ -461,6 +461,14 @@ 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); + ret = 0; goto ex; } memcpy(wpt, d->buffer->data, cpy_size);