mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
Don't use unaligned accesses when printing extended sense codes.
This commit is contained in:
parent
e31fa854a0
commit
cd1ab665c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38393
@ -8,7 +8,7 @@
|
||||
* file.
|
||||
*
|
||||
* Written by Julian Elischer (julian@dialix.oz.au)
|
||||
* $Id: scsi_base.c,v 1.56 1998/04/17 22:37:08 des Exp $
|
||||
* $Id: scsi_base.c,v 1.57 1998/07/11 07:45:57 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_bounce.h"
|
||||
@ -875,7 +875,8 @@ void scsi_sense_print(xs)
|
||||
case 0x70:
|
||||
|
||||
printf("%s", sense_key_text[key]);
|
||||
info = ntohl(*((long *) ext->info));
|
||||
info = (ext->info[0] << 24) | (ext->info[1] << 16)
|
||||
| (ext->info[2] << 8) | ext->info[3];
|
||||
|
||||
if (sense->error_code & SSD_ERRCODE_VALID) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user