summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortdeval <tdeval@openbsd.org>2003-01-08 06:33:38 +0000
committertdeval <tdeval@openbsd.org>2003-01-08 06:33:38 +0000
commitf9b64690ebf4e836b40746da1c5a79ad74b3d2a3 (patch)
tree92c7aa81911d7daaf824c0b3dc64118ab1463e79
parentbetter osiop at gsc attachment and kill dead siop from files.hppa (diff)
downloadwireguard-openbsd-f9b64690ebf4e836b40746da1c5a79ad74b3d2a3.tar.xz
wireguard-openbsd-f9b64690ebf4e836b40746da1c5a79ad74b3d2a3.zip
Sync debug info with code.
-rw-r--r--sys/dev/std/sbp2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/std/sbp2.c b/sys/dev/std/sbp2.c
index d8b0c915c23..71b4e636e60 100644
--- a/sys/dev/std/sbp2.c
+++ b/sys/dev/std/sbp2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbp2.c,v 1.3 2002/12/30 11:48:34 tdeval Exp $ */
+/* $OpenBSD: sbp2.c,v 1.4 2003/01/08 06:33:38 tdeval Exp $ */
/*
* Copyright (c) 2002 Thierry Deval. All rights reserved.
@@ -745,7 +745,8 @@ sbp2_status_resp(struct ieee1394_abuf *ab, int rcode)
if (elm == NULL) {
DPRINTF(("%s: no element found for hash"
" 0x%08x\n", __func__,
- (u_int32_t)(csr & 0xFFFFFFFC)));
+ (u_int32_t)(csr >> (SBP2_NODE_SHIFT -
+ 8 * sizeof(u_int32_t)))));
FREE(cmd_status, M_1394DATA);
MPRINTF("FREE(1394DATA)", cmd_status);
cmd_status = NULL; /* XXX */
@@ -1045,7 +1046,6 @@ sbp2_command_send(struct ieee1394_abuf *ab, int rcode)
MPRINTF("MALLOC(1394DATA)", cmd_ab);
bcopy(ab, cmd_ab, sizeof(*cmd_ab));
-
cmd_ab->ab_retlen = 0;
cmd_ab->ab_cb = NULL;
cmd_ab->ab_cbarg = NULL;