Module Name: src Committed By: thorpej Date: Sat Feb 22 20:29:16 UTC 2020
Modified Files: src/sys/arch/alpha/alpha: machdep.c Log Message: Fix a couple of printf formats in debug messages. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359 src/sys/arch/alpha/alpha/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/alpha/alpha/machdep.c diff -u src/sys/arch/alpha/alpha/machdep.c:1.358 src/sys/arch/alpha/alpha/machdep.c:1.359 --- src/sys/arch/alpha/alpha/machdep.c:1.358 Sat Feb 22 17:33:42 2020 +++ src/sys/arch/alpha/alpha/machdep.c Sat Feb 22 20:29:15 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.358 2020/02/22 17:33:42 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.359 2020/02/22 20:29:15 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2019 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.358 2020/02/22 17:33:42 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.359 2020/02/22 20:29:15 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -457,7 +457,7 @@ nobootinfo: } #if 0 - printf("Memory cluster count: %d\n", mddtp->mddt_cluster_cnt); + printf("Memory cluster count: %" PRIu64 "\n", mddtp->mddt_cluster_cnt); #endif for (i = 0; i < mddtp->mddt_cluster_cnt; i++) { @@ -601,7 +601,7 @@ nobootinfo: maxmem = physmem; #if 0 printf("totalphysmem = %d\n", totalphysmem); - printf("physmem = %d\n", physmem); + printf("physmem = %lu\n", physmem); printf("resvmem = %d\n", resvmem); printf("unusedmem = %d\n", unusedmem); printf("unknownmem = %d\n", unknownmem);