-# $OpenBSD: Makefile.macppc,v 1.67 2013/10/15 19:23:28 guenther Exp $
+# $OpenBSD: Makefile.macppc,v 1.68 2014/05/09 18:16:15 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
INCLUDES= -nostdinc -I$S -I. -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
- -Wno-main -Wno-uninitialized -Wno-format \
+ -Wno-main -Wno-uninitialized \
-Wstack-larger-than-2047
CMACHFLAGS= -msoft-float -Wa,-many
-/* $OpenBSD: clock.c,v 1.36 2014/04/01 20:27:14 mpi Exp $ */
+/* $OpenBSD: clock.c,v 1.37 2014/05/09 18:16:15 miod Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
if (deltat < 0)
deltat = -deltat;
if (!(waszero || deltat < 2 * SECDAY)) {
- printf("WARNING: clock %s %d days",
+ printf("WARNING: clock %s %ld days",
tv.tv_sec < base ? "lost" : "gained", deltat / SECDAY);
bad = "";
-/* $OpenBSD: machdep.c,v 1.149 2014/04/01 20:27:14 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.150 2014/05/09 18:16:15 miod Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
if (extent_free(devio_ex, bpa, size, EX_NOWAIT |
(ppc_malloc_ok ? EX_MALLOCOK : 0)))
{
- printf("bus_space_map: pa 0x%lx, size 0x%x\n",
+ printf("bus_space_map: pa 0x%lx, size 0x%lx\n",
bpa, size);
printf("bus_space_map: can't free region\n");
}
if (extent_free(devio_ex, bpa | (bsh & PAGE_MASK), size, EX_NOWAIT |
(ppc_malloc_ok ? EX_MALLOCOK : 0)))
{
- printf("bus_space_map: pa 0x%lx, size 0x%x\n",
+ printf("bus_space_map: pa 0x%lx, size 0x%lx\n",
bpa, size);
printf("bus_space_map: can't free region\n");
}
-/* $OpenBSD: fpu.c,v 1.12 2009/12/10 16:46:09 deraadt Exp $ */
+/* $OpenBSD: fpu.c,v 1.13 2014/05/09 18:16:15 miod Exp $ */
/* $NetBSD: fpu.c,v 1.1 1996/09/30 16:34:44 ws Exp $ */
/*
}
if (pcb->pcb_fpcpu != NULL || ci->ci_fpuproc != NULL) {
- printf("attempting to restore fpu state when in use pcb %x"
- " fpproc %x\n", pcb->pcb_fpcpu, ci->ci_fpuproc);
+ printf("attempting to restore fpu state when in use pcb %p"
+ " fpproc %p\n", pcb->pcb_fpcpu, ci->ci_fpuproc);
}
msr = ppc_mfmsr();
ppc_mtmsr((msr & ~PSL_EE) | PSL_FP);
-/* $OpenBSD: pmap.c,v 1.128 2014/04/26 14:19:04 mpi Exp $ */
+/* $OpenBSD: pmap.c,v 1.129 2014/05/09 18:16:15 miod Exp $ */
/*
* Copyright (c) 2001, 2002, 2007 Dale Rahn.
}
}
}
- panic ("unable to allocate region with size %x align %x",
+ panic ("unable to allocate region with size %zx align %x",
size, align);
}
-/* $OpenBSD: trap.c,v 1.96 2014/04/18 11:51:17 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.97 2014/05/09 18:16:15 miod Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
pcb->pcb_vr = pool_get(&ppc_vecpl, PR_WAITOK | PR_ZERO);
if (curcpu()->ci_vecproc != NULL || pcb->pcb_veccpu != NULL)
- printf("attempting to restore vector in use vecproc %x"
- " veccpu %x\n", curcpu()->ci_vecproc, pcb->pcb_veccpu);
+ printf("attempting to restore vector in use vecproc %p"
+ " veccpu %p\n", curcpu()->ci_vecproc, pcb->pcb_veccpu);
/* first we enable vector so that we dont throw an exception
* in kernel mode
name = "0";
offset = frame->srr0;
}
- panic ("trap type %x at %x (%s+0x%lx) lr %x",
+ panic ("trap type %x at %x (%s+0x%lx) lr %lx",
type, frame->srr0, name, offset, frame->lr);
-# $OpenBSD: Makefile.socppc,v 1.38 2013/10/15 19:23:30 guenther Exp $
+# $OpenBSD: Makefile.socppc,v 1.39 2014/05/09 18:16:15 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
INCLUDES= -nostdinc -I$S -I. -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
- -Wno-main -Wno-uninitialized -Wno-format \
+ -Wno-main -Wno-uninitialized \
-Wstack-larger-than-2047
CMACHFLAGS= -msoft-float -Wa,-many
-/* $OpenBSD: obio.c,v 1.5 2009/09/06 20:09:34 kettenis Exp $ */
+/* $OpenBSD: obio.c,v 1.6 2014/05/09 18:16:15 miod Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
if (name)
printf("\"%s\" at %s", oa->oa_name, name);
if (oa->oa_offset)
- printf(" offset 0x%05x", oa->oa_offset);
+ printf(" offset 0x%05lx", oa->oa_offset);
if (oa->oa_ivec != -1)
printf(" ivec %d", oa->oa_ivec);
-/* $OpenBSD: machdep.c,v 1.45 2014/04/01 20:42:39 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.46 2014/05/09 18:16:15 miod Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
if (extent_free(devio_ex, bpa, size, EX_NOWAIT |
(ppc_malloc_ok ? EX_MALLOCOK : 0)))
{
- printf("bus_space_map: pa 0x%lx, size 0x%x\n",
+ printf("bus_space_map: pa 0x%lx, size 0x%lx\n",
bpa, size);
printf("bus_space_map: can't free region\n");
}
if (extent_free(devio_ex, bpa | (bsh & PAGE_MASK), size, EX_NOWAIT |
(ppc_malloc_ok ? EX_MALLOCOK : 0)))
{
- printf("bus_space_map: pa 0x%lx, size 0x%x\n",
+ printf("bus_space_map: pa 0x%lx, size 0x%lx\n",
bpa, size);
printf("bus_space_map: can't free region\n");
}
printf("%s", version);
- printf("real mem = %u (%uMB)\n", ptoa(physmem),
+ printf("real mem = %lu (%luMB)\n", ptoa(physmem),
ptoa(physmem)/1024/1024);
/*
-/* $OpenBSD: utpms.c,v 1.3 2013/11/15 08:17:44 pirofti Exp $ */
+/* $OpenBSD: utpms.c,v 1.4 2014/05/09 18:16:15 miod Exp $ */
/*
* Copyright (c) 2005, Johan Wallén
}
if (sc->sc_x_sensors <= 0 || sc->sc_x_sensors > UTPMS_X_SENSORS ||
sc->sc_y_sensors <= 0 || sc->sc_y_sensors > UTPMS_Y_SENSORS) {
- printf(": unexpected sensors configuration (d:d)\n",
+ printf(": unexpected sensors configuration (%d:%d)\n",
sc->sc_x_sensors, sc->sc_y_sensors);
return;
}