summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-17 00:08:29 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-17 00:08:29 +0000
commite0db131ba028922d0f48f643f31bda5630ef9d89 (patch)
treecaff1d9d374a08d69896be4fcbfbc5a08906783e /sys/dev
parent7394d510b4f6733a7cd4f6483f101b0466cb0bf0 (diff)
downloadFreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.zip
FreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.tar.gz
Use %p with (void *) casts to print pointers with printf.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/aha/aha.c12
-rw-r--r--sys/dev/ahb/ahb.c8
-rw-r--r--sys/dev/buslogic/bt.c12
3 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index 10fc52f..cad192a 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aha.c,v 1.1 1998/09/15 07:39:52 gibbs Exp $
+ * $Id: aha.c,v 1.2 1998/09/16 03:27:12 gibbs Exp $
*/
#include <sys/param.h>
@@ -1139,8 +1139,8 @@ ahadone(struct aha_softc *aha, struct aha_ccb *bccb, aha_mbi_comp_code_t comp_co
csio = &bccb->ccb->csio;
if ((bccb->flags & BCCB_ACTIVE) == 0) {
- printf("%s: ahadone - Attempt to free non-active BCCB 0x%x\n",
- aha_name(aha), (intptr_t)bccb);
+ printf("%s: ahadone - Attempt to free non-active BCCB %p\n",
+ aha_name(aha), (void *)bccb);
return;
}
@@ -1679,14 +1679,14 @@ ahatimeout(void *arg)
ccb = bccb->ccb;
aha = (struct aha_softc *)ccb->ccb_h.ccb_aha_ptr;
xpt_print_path(ccb->ccb_h.path);
- printf("CCB 0x%x - timed out\n", (intptr_t)bccb);
+ printf("CCB %p - timed out\n", (void *)bccb);
s = splcam();
if ((bccb->flags & BCCB_ACTIVE) == 0) {
xpt_print_path(ccb->ccb_h.path);
- printf("CCB 0x%x - timed out CCB already completed\n",
- (intptr_t)bccb);
+ printf("CCB %p - timed out CCB already completed\n",
+ (void *)bccb);
splx(s);
return;
}
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index 45a0cf8..c253bea 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ahb.c,v 1.1 1998/09/15 07:10:00 gibbs Exp $
+ * $Id: ahb.c,v 1.2 1998/09/16 03:27:07 gibbs Exp $
*/
#include "eisa.h"
@@ -1259,14 +1259,14 @@ ahbtimeout(void *arg)
ccb = ecb->ccb;
ahb = (struct ahb_softc *)ccb->ccb_h.ccb_ahb_ptr;
xpt_print_path(ccb->ccb_h.path);
- printf("ECB 0x%x - timed out\n", (intptr_t)ecb);
+ printf("ECB %p - timed out\n", (void *)ecb);
s = splcam();
if ((ecb->state & ECB_ACTIVE) == 0) {
xpt_print_path(ccb->ccb_h.path);
- printf("ECB 0x%x - timed out ECB already completed\n",
- (intptr_t)ecb);
+ printf("ECB %p - timed out ECB already completed\n",
+ (void *)ecb);
splx(s);
return;
}
diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c
index 6f3b987..e07b03e 100644
--- a/sys/dev/buslogic/bt.c
+++ b/sys/dev/buslogic/bt.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bt.c,v 1.1 1998/09/15 07:32:48 gibbs Exp $
+ * $Id: bt.c,v 1.2 1998/09/16 03:27:11 gibbs Exp $
*/
/*
@@ -1392,8 +1392,8 @@ btdone(struct bt_softc *bt, struct bt_ccb *bccb, bt_mbi_comp_code_t comp_code)
csio = &bccb->ccb->csio;
if ((bccb->flags & BCCB_ACTIVE) == 0) {
- printf("%s: btdone - Attempt to free non-active BCCB 0x%x\n",
- bt_name(bt), (intptr_t)bccb);
+ printf("%s: btdone - Attempt to free non-active BCCB %p\n",
+ bt_name(bt), (void *)bccb);
return;
}
@@ -2060,14 +2060,14 @@ bttimeout(void *arg)
ccb = bccb->ccb;
bt = (struct bt_softc *)ccb->ccb_h.ccb_bt_ptr;
xpt_print_path(ccb->ccb_h.path);
- printf("CCB 0x%x - timed out\n", (intptr_t)bccb);
+ printf("CCB %p - timed out\n", (void *)bccb);
s = splcam();
if ((bccb->flags & BCCB_ACTIVE) == 0) {
xpt_print_path(ccb->ccb_h.path);
- printf("CCB 0x%x - timed out CCB already completed\n",
- (intptr_t)bccb);
+ printf("CCB %p - timed out CCB already completed\n",
+ (void *)bccb);
splx(s);
return;
}
OpenPOWER on IntegriCloud