Change memcmp() to bcmp(). memcmp() isn't declared or implemented
for the kernel, but gcc provides an inline version of it if the kernel is compiled with -O. The inline memcmp() is OK for small compares and is better than the dumb kernel bcmp() in all cases, but it has been hiding the library memcmp() which is 4 times faster for large compares.
This commit is contained in:
parent
a4688d0202
commit
dc57933a47
@ -8,7 +8,7 @@
|
||||
* file.
|
||||
*
|
||||
* Written by Julian Elischer (julian@dialix.oz.au)
|
||||
* $Id: scsi_base.c,v 1.28 1995/04/23 22:07:50 gibbs Exp $
|
||||
* $Id: scsi_base.c,v 1.29 1995/05/30 08:13:27 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#define SPLSD splbio
|
||||
@ -848,7 +848,7 @@ void scsi_sense_print(xs)
|
||||
printf(" info?:%lx", info);
|
||||
|
||||
if (ext->extra_len >= 4) {
|
||||
if (memcmp(ext->cmd_spec_info, "\0\0\0\0", 4)) {
|
||||
if (bcmp(ext->cmd_spec_info, "\0\0\0\0", 4)) {
|
||||
printf(" csi:%x,%x,%x,%x",
|
||||
ext->cmd_spec_info[0],
|
||||
ext->cmd_spec_info[1],
|
||||
|
Loading…
Reference in New Issue
Block a user