From 2fd0fc3086306e2a343036dfc6d97040f99d1950 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 5 Dec 2009 14:35:41 +0000 Subject: [PATCH] Converted stderr experiment messages to DEBUG messages --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/mmc.c | 16 ---------------- libburn/trunk/libburn/sg-linux.c | 13 ++++++------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index db39af11..82cbf40a 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.12.05.142309" +#define Cdrskin_timestamP "2009.12.05.143707" diff --git a/libburn/trunk/libburn/mmc.c b/libburn/trunk/libburn/mmc.c index db3913dd..1028b2c9 100644 --- a/libburn/trunk/libburn/mmc.c +++ b/libburn/trunk/libburn/mmc.c @@ -2310,26 +2310,10 @@ int mmc_set_streaming(struct burn_drive *d, d->issue_command(d, &c); if (c.error) { if (c.sense[2]!=0 && !d->silent_on_scsi_error) { - -#ifdef NIX - sprintf(msg, - "SCSI error on set_streaming(%d): key=%X asc=%2.2Xh ascq=%2.2Xh", - w_speed, - c.sense[2],c.sense[12],c.sense[13]); - libdax_msgs_submit(libdax_messenger, - d->global_index, - 0x00020124, - LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH, - msg, 0, 0); -#else /* NIX */ - sprintf(msg, "SCSI error on set_streaming(%d): ", w_speed); scsi_error_msg(d, c.sense, 14, msg + strlen(msg), &key, &asc, &ascq); - -#endif /* !NIX */ - } return 0; } diff --git a/libburn/trunk/libburn/sg-linux.c b/libburn/trunk/libburn/sg-linux.c index 4fc4396d..f3c82b2a 100644 --- a/libburn/trunk/libburn/sg-linux.c +++ b/libburn/trunk/libburn/sg-linux.c @@ -2116,10 +2116,9 @@ int burn_os_open_track_src(char *path, int open_flags, int flag) int fd; #ifdef Libburn_linux_do_o_direcT - - fprintf(stderr, - "libburn_EXPERIMENTAL : opening track source with O_DIRECT\n"); - + libdax_msgs_submit(libdax_messenger, -1, 0x00000002, + LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH, + "Opening track source with O_DIRECT" , 0, 0); fd = open(path, open_flags | O_DIRECT); #else fd = open(path, open_flags); @@ -2136,9 +2135,9 @@ void *burn_os_alloc_buffer(size_t amount, int flag) /* >>> check whether size is suitable */; - fprintf(stderr, - "libburn_EXPERIMENTAL : allocating buffer via mmap()\n"); - + libdax_msgs_submit(libdax_messenger, -1, 0x00000002, + LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH, + "Allocating buffer via mmap()" , 0, 0); buf = mmap(NULL, amount, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, (off_t) 0); if (buf == MAP_FAILED)