Fix printf format warnings on Alpha.

This commit is contained in:
thorpej 1999-02-13 02:41:40 +00:00
parent 70b91539e9
commit 22a5cb007f
12 changed files with 39 additions and 39 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.4 1997/09/16 22:52:40 thorpej Exp $ */
/* $NetBSD: db_disasm.c,v 1.5 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Mach Operating System
@ -48,7 +48,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.4 1997/09/16 22:52:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.5 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1031,7 +1031,7 @@ loadstore:
register_name(i.mem_format.rd));
signed_immediate = (long)i.mem_format.displacement;
loadstore_address:
db_printf("%z(%s)", signed_immediate,
db_printf("%lz(%s)", signed_immediate,
register_name(i.mem_format.rs));
/*
* For convenience, do the address computation
@ -1039,7 +1039,7 @@ loadstore_address:
if (showregs) {
if (i.mem_format.opcode == op_ldah)
signed_immediate <<= 16;
db_printf(" <0x%x>", signed_immediate +
db_printf(" <0x%lx>", signed_immediate +
db_register_value(DDB_REGS, i.mem_format.rs));
}
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_1000a.c,v 1.3 1998/11/19 02:02:45 ross Exp $ */
/* $NetBSD: dec_1000a.c,v 1.4 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.3 1998/11/19 02:02:45 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.4 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -217,7 +217,7 @@ dec_1000a_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_2100_a50.c,v 1.39 1998/04/17 02:45:19 mjacob Exp $ */
/* $NetBSD: dec_2100_a50.c,v 1.40 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.39 1998/04/17 02:45:19 mjacob Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.40 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -156,7 +156,7 @@ dec_2100_a50_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_550.c,v 1.2 1998/06/06 20:53:41 thorpej Exp $ */
/* $NetBSD: dec_550.c,v 1.3 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.2 1998/06/06 20:53:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.3 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -145,7 +145,7 @@ dec_550_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_alphabook1.c,v 1.1 1998/06/26 05:42:34 thorpej Exp $ */
/* $NetBSD: dec_alphabook1.c,v 1.2 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.1 1998/06/26 05:42:34 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.2 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -147,7 +147,7 @@ dec_alphabook1_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_axppci_33.c,v 1.40 1998/11/20 03:58:22 ross Exp $ */
/* $NetBSD: dec_axppci_33.c,v 1.41 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.40 1998/11/20 03:58:22 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.41 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -191,7 +191,7 @@ dec_axppci_33_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb164.c,v 1.26 1998/04/17 02:45:19 mjacob Exp $ */
/* $NetBSD: dec_eb164.c,v 1.27 1999/02/13 02:41:40 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.26 1998/04/17 02:45:19 mjacob Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.27 1999/02/13 02:41:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -140,7 +140,7 @@ dec_eb164_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb64plus.c,v 1.15 1998/11/19 02:20:07 ross Exp $ */
/* $NetBSD: dec_eb64plus.c,v 1.16 1999/02/13 02:41:41 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.15 1998/11/19 02:20:07 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.16 1999/02/13 02:41:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -148,7 +148,7 @@ dec_eb64plus_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb66.c,v 1.1 1998/06/27 10:10:51 thorpej Exp $ */
/* $NetBSD: dec_eb66.c,v 1.2 1999/02/13 02:41:41 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.1 1998/06/27 10:10:51 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.2 1999/02/13 02:41:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -148,7 +148,7 @@ dec_eb66_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn20aa.c,v 1.38 1998/04/17 02:45:19 mjacob Exp $ */
/* $NetBSD: dec_kn20aa.c,v 1.39 1999/02/13 02:41:41 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.38 1998/04/17 02:45:19 mjacob Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.39 1999/02/13 02:41:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -148,7 +148,7 @@ dec_kn20aa_cons_init()
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %d\n",
panic("consinit: unknown console type %ld\n",
ctb->ctb_term_type);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn300.c,v 1.11 1998/11/19 02:22:01 ross Exp $ */
/* $NetBSD: dec_kn300.c,v 1.12 1999/02/13 02:41:41 thorpej Exp $ */
/*
* Copyright (c) 1998 by Matthew Jacob
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.11 1998/11/19 02:22:01 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.12 1999/02/13 02:41:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -173,7 +173,7 @@ dec_kn300_cons_init()
default:
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("dec_kn300_cons_init: unknown console type %d\n",
panic("dec_kn300_cons_init: unknown console type %ld\n",
ctb->ctb_term_type);
}
}
@ -371,7 +371,7 @@ kn300_softerr(mces, type, logout, framep)
"I/O Bridge Module" : sys));
printf(" Machine Check Code 0x%lx\n", hdr->mcheck_code);
printf(" Physical Address of Error %p\n", ptr->ei_addr);
printf(" Physical Address of Error 0x%lx\n", ptr->ei_addr);
if (ptr->ei_stat & 0x80000000L)
printf(" Corrected ECC Error ");
else
@ -496,7 +496,7 @@ dec_kn300_mcheck_handler(mces, framep, vector, param)
kn300_mcheck(mces, vector, param, framep);
break;
default:
printf("KN300_MCHECK: unknown check vector %x\n", vector);
printf("KN300_MCHECK: unknown check vector 0x%lx\n", vector);
machine_check(mces, framep, vector, param);
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn8ae.c,v 1.21 1998/11/19 02:22:01 ross Exp $ */
/* $NetBSD: dec_kn8ae.c,v 1.22 1999/02/13 02:41:41 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_kn8ae.c,v 1.21 1998/11/19 02:22:01 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_kn8ae.c,v 1.22 1999/02/13 02:41:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -586,7 +586,7 @@ dec_kn8ae_mcheck_handler(mces, framep, vector, param)
kn8ae_mcheck(mces, vector, param, framep);
break;
default:
printf("KN8AE_MCHECK: unknown check vector %x\n", vector);
printf("KN8AE_MCHECK: unknown check vector 0x%lx\n", vector);
machine_check(mces, framep, vector, param);
break;
}