Converted stderr experiment messages to DEBUG messages

This commit is contained in:
Thomas Schmitt 2009-12-05 14:35:41 +00:00
parent 1f73d8fb3d
commit 2fd0fc3086
3 changed files with 7 additions and 24 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.12.05.142309"
#define Cdrskin_timestamP "2009.12.05.143707"

View File

@ -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;
}

View File

@ -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)