Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89699
b: refs/heads/master
c: a34c4e9
h: refs/heads/master
i:
  89697: 1ed0fd3
  89695: 72f7977
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Apr 7, 2008
1 parent 1959e86 commit 1ae6ab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bc6a26192d2548397a3e721d786cf8345ee54e1
refs/heads/master: a34c4e98367965402134f2e66c3cdc4416f109e4
18 changes: 5 additions & 13 deletions trunk/drivers/scsi/scsi_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsicam.h>
#include <scsi/scsi_eh.h>

#include <linux/stat.h>

Expand Down Expand Up @@ -1808,22 +1809,13 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev)
static void mk_sense_buffer(struct sdebug_dev_info * devip, int key,
int asc, int asq)
{
unsigned char * sbuff;
unsigned char *sbuff;

sbuff = devip->sense_buff;
memset(sbuff, 0, SDEBUG_SENSE_LEN);
if (scsi_debug_dsense) {
sbuff[0] = 0x72; /* descriptor, current */
sbuff[1] = key;
sbuff[2] = asc;
sbuff[3] = asq;
} else {
sbuff[0] = 0x70; /* fixed, current */
sbuff[2] = key;
sbuff[7] = 0xa; /* implies 18 byte sense buffer */
sbuff[12] = asc;
sbuff[13] = asq;
}

scsi_build_sense_buffer(scsi_debug_dsense, sbuff, key, asc, asq);

if (SCSI_DEBUG_OPT_NOISE & scsi_debug_opts)
printk(KERN_INFO "scsi_debug: [sense_key,asc,ascq]: "
"[0x%x,0x%x,0x%x]\n", key, asc, asq);
Expand Down

0 comments on commit 1ae6ab6

Please sign in to comment.