summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-24 02:28:16 +0000
committerbde <bde@FreeBSD.org>1998-08-24 02:28:16 +0000
commitf45ec220062c45b6f53f7eddeb3892a2df54ca63 (patch)
treeadd7f3aff956758872236d008a575411ee01f80a /sys/amd64
parentd39f49e72d9eed2771f3bb23e90fdaa965286143 (diff)
downloadFreeBSD-src-f45ec220062c45b6f53f7eddeb3892a2df54ca63.zip
FreeBSD-src-f45ec220062c45b6f53f7eddeb3892a2df54ca63.tar.gz
Fixed printf format errors. Only one left in LINT on i386's.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/mp_machdep.c4
-rw-r--r--sys/amd64/amd64/mptable.c4
-rw-r--r--sys/amd64/amd64/sys_machdep.c9
-rw-r--r--sys/amd64/include/mptable.h4
4 files changed, 11 insertions, 10 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index d36835d..04e3c69 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.77 1998/08/16 00:41:40 bde Exp $
+ * $Id: mp_machdep.c,v 1.78 1998/08/18 07:46:58 msmith Exp $
*/
#include "opt_smp.h"
@@ -2113,7 +2113,7 @@ ap_init()
if (cpuid != apic_id) {
printf("SMP: cpuid = %d\n", cpuid);
printf("SMP: apic_id = %d\n", apic_id);
- printf("PTD[MPPTDI] = %08x\n", PTD[MPPTDI]);
+ printf("PTD[MPPTDI] = %p\n", (void *)PTD[MPPTDI]);
panic("cpuid mismatch! boom!!");
}
diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c
index d36835d..04e3c69 100644
--- a/sys/amd64/amd64/mptable.c
+++ b/sys/amd64/amd64/mptable.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.77 1998/08/16 00:41:40 bde Exp $
+ * $Id: mp_machdep.c,v 1.78 1998/08/18 07:46:58 msmith Exp $
*/
#include "opt_smp.h"
@@ -2113,7 +2113,7 @@ ap_init()
if (cpuid != apic_id) {
printf("SMP: cpuid = %d\n", cpuid);
printf("SMP: apic_id = %d\n", apic_id);
- printf("PTD[MPPTDI] = %08x\n", PTD[MPPTDI]);
+ printf("PTD[MPPTDI] = %p\n", (void *)PTD[MPPTDI]);
panic("cpuid mismatch! boom!!");
}
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c
index 573052e..0f569f2 100644
--- a/sys/amd64/amd64/sys_machdep.c
+++ b/sys/amd64/amd64/sys_machdep.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
- * $Id: sys_machdep.c,v 1.35 1998/07/28 03:29:32 jlemon Exp $
+ * $Id: sys_machdep.c,v 1.36 1998/08/18 07:46:58 msmith Exp $
*
*/
@@ -290,8 +290,8 @@ i386_get_ldt(p, args)
return(error);
#ifdef DEBUG
- printf("i386_get_ldt: start=%d num=%d descs=%x\n", uap->start,
- uap->num, uap->desc);
+ printf("i386_get_ldt: start=%d num=%d descs=%p\n",
+ uap->start, uap->num, (void *)uap->desc);
#endif
/* verify range of LDTs exist */
@@ -345,7 +345,8 @@ i386_set_ldt(p, args)
uap = &ua;
#ifdef DEBUG
- printf("i386_set_ldt: start=%d num=%d descs=%x\n", uap->start, uap->num, uap->desc);
+ printf("i386_set_ldt: start=%d num=%d descs=%p\n",
+ uap->start, uap->num, (void *)uap->desc);
#endif
/* verify range of descriptors to modify */
diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h
index d36835d..04e3c69 100644
--- a/sys/amd64/include/mptable.h
+++ b/sys/amd64/include/mptable.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.77 1998/08/16 00:41:40 bde Exp $
+ * $Id: mp_machdep.c,v 1.78 1998/08/18 07:46:58 msmith Exp $
*/
#include "opt_smp.h"
@@ -2113,7 +2113,7 @@ ap_init()
if (cpuid != apic_id) {
printf("SMP: cpuid = %d\n", cpuid);
printf("SMP: apic_id = %d\n", apic_id);
- printf("PTD[MPPTDI] = %08x\n", PTD[MPPTDI]);
+ printf("PTD[MPPTDI] = %p\n", (void *)PTD[MPPTDI]);
panic("cpuid mismatch! boom!!");
}
OpenPOWER on IntegriCloud