Add 0x prefix before hex physmem in couple more places.

For netwinder move physmem arg to new line to keep line <80 symbols.
This commit is contained in:
andvar 2024-02-21 23:23:06 +00:00
parent 20bd86aa0f
commit 181973476e
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: netwinder_machdep.c,v 1.92 2022/05/23 19:52:34 andvar Exp $ */
/* $NetBSD: netwinder_machdep.c,v 1.93 2024/02/21 23:23:06 andvar Exp $ */
/*
* Copyright (c) 1997,1998 Mark Brinicombe.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.92 2022/05/23 19:52:34 andvar Exp $");
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.93 2024/02/21 23:23:06 andvar Exp $");
#include "opt_ddb.h"
@ -472,8 +472,8 @@ initarm(void *arg)
physmem = (physical_end - physical_start) / PAGE_SIZE;
/* Tell the user about the memory */
printf("physmemory: %"PRIxPSIZE" pages at 0x%08lx -> 0x%08lx\n", physmem,
physical_start, physical_end - 1);
printf("physmemory: 0x%"PRIxPSIZE" pages at 0x%08lx -> 0x%08lx\n",
physmem, physical_start, physical_end - 1);
/*
* Okay, we need to allocate some fixed page tables to get the

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka650.c,v 1.38 2017/03/31 08:38:13 msaitoh Exp $ */
/* $NetBSD: ka650.c,v 1.39 2024/02/21 23:23:06 andvar Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ka650.c,v 1.38 2017/03/31 08:38:13 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: ka650.c,v 1.39 2024/02/21 23:23:06 andvar Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -106,7 +106,7 @@ ka650_conf(void)
ka650setcache(CACHEON);
if (ctob(physmem) > ka650merr_ptr->merr_qbmbr) {
printf("physmem(%"PRIxPSIZE") > qbmbr(0x%x)\n",
printf("physmem(0x%"PRIxPSIZE") > qbmbr(0x%x)\n",
ctob(physmem), (int)ka650merr_ptr->merr_qbmbr);
panic("qbus map unprotected");
}