blob: 0aaf9363f52bf4ad3106c767893593a33c8e4238 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-aj,v 1.1.1.1 2002/12/02 18:41:20 drochner Exp $
--- cdrecord/scsi_cdr.c.orig Thu Sep 12 22:39:35 2002
+++ cdrecord/scsi_cdr.c
@@ -282,6 +282,12 @@ EXPORT int
request_sense(scgp)
SCSI *scgp;
{
+
+#ifdef __NetBSD__
+ /* request sense already done by kernel */
+ scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense,
+ scgp->scmd->sense_count);
+#else
char sensebuf[CCS_SENSE_LEN];
register struct scg_cmd *scmd = scgp->scmd;
@@ -301,6 +307,7 @@ request_sense(scgp)
if (scg_cmd(scgp) < 0)
return (-1);
scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp));
+#endif
return (0);
}
|