summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-25 04:37:54 +0000
committerjhb <jhb@FreeBSD.org>2000-10-25 04:37:54 +0000
commitbd51e9cd4ee167b630d395b5345f61540a664203 (patch)
treee18d16a1a590c5b6d5706ccebe69385feaee2be5 /sys/kern
parentde9ac9599b41047b4405f7926f806a12e73d3782 (diff)
downloadFreeBSD-src-bd51e9cd4ee167b630d395b5345f61540a664203.zip
FreeBSD-src-bd51e9cd4ee167b630d395b5345f61540a664203.tar.gz
Quite some warnings.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_mutex.c6
-rw-r--r--sys/kern/subr_turnstile.c6
-rw-r--r--sys/kern/subr_witness.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index c300c12..d9ac0a0 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -230,7 +230,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
return;
}
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
- m, m->mtx_lock, RETIP(m));
+ m, (void *)m->mtx_lock, (void *)RETIP(m));
while (!_obtain_lock(m, p)) {
uintptr_t v;
struct proc *p1;
@@ -460,10 +460,10 @@ mtx_exit_hard(struct mtx *m, int type)
#endif
setrunqueue(p);
CTR2(KTR_LOCK, "mtx_exit: 0x%p switching out lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
mi_switch();
CTR2(KTR_LOCK, "mtx_exit: 0x%p resuming lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
}
mtx_exit(&sched_lock, MTX_SPIN);
break;
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index c300c12..d9ac0a0 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -230,7 +230,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
return;
}
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
- m, m->mtx_lock, RETIP(m));
+ m, (void *)m->mtx_lock, (void *)RETIP(m));
while (!_obtain_lock(m, p)) {
uintptr_t v;
struct proc *p1;
@@ -460,10 +460,10 @@ mtx_exit_hard(struct mtx *m, int type)
#endif
setrunqueue(p);
CTR2(KTR_LOCK, "mtx_exit: 0x%p switching out lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
mi_switch();
CTR2(KTR_LOCK, "mtx_exit: 0x%p resuming lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
}
mtx_exit(&sched_lock, MTX_SPIN);
break;
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index c300c12..d9ac0a0 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -230,7 +230,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
return;
}
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
- m, m->mtx_lock, RETIP(m));
+ m, (void *)m->mtx_lock, (void *)RETIP(m));
while (!_obtain_lock(m, p)) {
uintptr_t v;
struct proc *p1;
@@ -460,10 +460,10 @@ mtx_exit_hard(struct mtx *m, int type)
#endif
setrunqueue(p);
CTR2(KTR_LOCK, "mtx_exit: 0x%p switching out lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
mi_switch();
CTR2(KTR_LOCK, "mtx_exit: 0x%p resuming lock=0x%p",
- m, m->mtx_lock);
+ m, (void *)m->mtx_lock);
}
mtx_exit(&sched_lock, MTX_SPIN);
break;
OpenPOWER on IntegriCloud