Converted stderr experiment messages to DEBUG messages
This commit is contained in:
parent
1f73d8fb3d
commit
2fd0fc3086
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2009.12.05.142309"
|
#define Cdrskin_timestamP "2009.12.05.143707"
|
||||||
|
@ -2310,26 +2310,10 @@ int mmc_set_streaming(struct burn_drive *d,
|
|||||||
d->issue_command(d, &c);
|
d->issue_command(d, &c);
|
||||||
if (c.error) {
|
if (c.error) {
|
||||||
if (c.sense[2]!=0 && !d->silent_on_scsi_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,
|
sprintf(msg,
|
||||||
"SCSI error on set_streaming(%d): ", w_speed);
|
"SCSI error on set_streaming(%d): ", w_speed);
|
||||||
scsi_error_msg(d, c.sense, 14, msg + strlen(msg),
|
scsi_error_msg(d, c.sense, 14, msg + strlen(msg),
|
||||||
&key, &asc, &ascq);
|
&key, &asc, &ascq);
|
||||||
|
|
||||||
#endif /* !NIX */
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -2116,10 +2116,9 @@ int burn_os_open_track_src(char *path, int open_flags, int flag)
|
|||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
#ifdef Libburn_linux_do_o_direcT
|
#ifdef Libburn_linux_do_o_direcT
|
||||||
|
libdax_msgs_submit(libdax_messenger, -1, 0x00000002,
|
||||||
fprintf(stderr,
|
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
"libburn_EXPERIMENTAL : opening track source with O_DIRECT\n");
|
"Opening track source with O_DIRECT" , 0, 0);
|
||||||
|
|
||||||
fd = open(path, open_flags | O_DIRECT);
|
fd = open(path, open_flags | O_DIRECT);
|
||||||
#else
|
#else
|
||||||
fd = open(path, open_flags);
|
fd = open(path, open_flags);
|
||||||
@ -2136,9 +2135,9 @@ void *burn_os_alloc_buffer(size_t amount, int flag)
|
|||||||
|
|
||||||
/* >>> check whether size is suitable */;
|
/* >>> check whether size is suitable */;
|
||||||
|
|
||||||
fprintf(stderr,
|
libdax_msgs_submit(libdax_messenger, -1, 0x00000002,
|
||||||
"libburn_EXPERIMENTAL : allocating buffer via mmap()\n");
|
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
|
"Allocating buffer via mmap()" , 0, 0);
|
||||||
buf = mmap(NULL, amount, PROT_READ | PROT_WRITE,
|
buf = mmap(NULL, amount, PROT_READ | PROT_WRITE,
|
||||||
MAP_SHARED | MAP_ANONYMOUS, -1, (off_t) 0);
|
MAP_SHARED | MAP_ANONYMOUS, -1, (off_t) 0);
|
||||||
if (buf == MAP_FAILED)
|
if (buf == MAP_FAILED)
|
||||||
|
Loading…
Reference in New Issue
Block a user