summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-25 22:09:06 +0000
committerbde <bde@FreeBSD.org>1995-07-25 22:09:06 +0000
commitdc57933a474b71b19adc1431b512241d740e7ac4 (patch)
tree276750418fce97932c4e04f36f05056c8746c255 /sys/scsi/scsi_base.c
parenta4688d0202b9fdc2094eaf39b7c45328ee4ee660 (diff)
downloadFreeBSD-src-dc57933a474b71b19adc1431b512241d740e7ac4.zip
FreeBSD-src-dc57933a474b71b19adc1431b512241d740e7ac4.tar.gz
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.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 487173a..9217aac 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -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],
OpenPOWER on IntegriCloud