Module Name: src
Committed By: yamt
Date: Sun Aug 16 11:04:48 UTC 2009
Modified Files:
src/sys/arch/amd64/amd64: procfs_machdep.c
src/sys/arch/i386/i386: procfs_machdep.c
Log Message:
reduce differences between x86 ports.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/amd64/amd64/procfs_machdep.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/i386/i386/procfs_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/amd64/amd64/procfs_machdep.c
diff -u src/sys/arch/amd64/amd64/procfs_machdep.c:1.11 src/sys/arch/amd64/amd64/procfs_machdep.c:1.12
--- src/sys/arch/amd64/amd64/procfs_machdep.c:1.11 Wed Jun 11 21:47:46 2008
+++ src/sys/arch/amd64/amd64/procfs_machdep.c Sun Aug 16 11:04:48 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_machdep.c,v 1.11 2008/06/11 21:47:46 njoly Exp $ */
+/* $NetBSD: procfs_machdep.c,v 1.12 2009/08/16 11:04:48 yamt Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.11 2008/06/11 21:47:46 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.12 2009/08/16 11:04:48 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -201,7 +201,7 @@
freq = (ci->ci_data.cpu_cc_freq + 4999) / 1000000;
fraq = ((ci->ci_data.cpu_cc_freq + 4999) / 10000) % 100;
- l = snprintf(p, left, "cpu MHz\t\t: %ld.%ld\n",
+ l = snprintf(p, left, "cpu MHz\t\t: %" PRIu64 ".%" PRIu64 "\n",
freq, fraq);
} else
l = snprintf(p, left, "cpu MHz\t\t: unknown\n");
Index: src/sys/arch/i386/i386/procfs_machdep.c
diff -u src/sys/arch/i386/i386/procfs_machdep.c:1.31 src/sys/arch/i386/i386/procfs_machdep.c:1.32
--- src/sys/arch/i386/i386/procfs_machdep.c:1.31 Wed Jun 11 21:47:46 2008
+++ src/sys/arch/i386/i386/procfs_machdep.c Sun Aug 16 11:04:48 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_machdep.c,v 1.31 2008/06/11 21:47:46 njoly Exp $ */
+/* $NetBSD: procfs_machdep.c,v 1.32 2009/08/16 11:04:48 yamt Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.31 2008/06/11 21:47:46 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.32 2009/08/16 11:04:48 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,7 +162,7 @@
freq = (ci->ci_data.cpu_cc_freq + 4999) / 1000000;
fraq = ((ci->ci_data.cpu_cc_freq + 4999) / 10000) % 100;
- l = snprintf(p, left, "cpu MHz\t\t: %qd.%qd\n",
+ l = snprintf(p, left, "cpu MHz\t\t: %" PRIu64 ".%" PRIu64 "\n",
freq, fraq);
} else
l = snprintf(p, left, "cpu MHz\t\t: unknown\n");