Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/arch/i386/i386 Pull up revision 1.19 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/acdd0e297a6a
branches:  netbsd-2-0
changeset: 560340:acdd0e297a6a
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Apr 09 10:47:37 2004 +0000

description:
Pull up revision 1.19 (requested by salo in ticket #103):
Revert previous: Linux' procfs spells "CPU" "cpu", so mimic it.
Closes PR 25076 by salo.

diffstat:

 sys/arch/i386/i386/procfs_machdep.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 00e0d953534d -r acdd0e297a6a sys/arch/i386/i386/procfs_machdep.c
--- a/sys/arch/i386/i386/procfs_machdep.c       Fri Apr 09 02:31:39 2004 +0000
+++ b/sys/arch/i386/i386/procfs_machdep.c       Fri Apr 09 10:47:37 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_machdep.c,v 1.18 2004/02/13 11:36:14 wiz Exp $  */
+/*     $NetBSD: procfs_machdep.c,v 1.18.2.1 2004/04/09 10:47:37 tron Exp $     */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.18 2004/02/13 11:36:14 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.18.2.1 2004/04/09 10:47:37 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -96,7 +96,7 @@
        l = snprintf(p, left,
                "processor\t: %d\n"
                "vendor_id\t: %s\n"
-               "CPU family\t: %d\n"
+               "cpu family\t: %d\n"
                "model\t\t: %d\n"
                "model name\t: %s\n"
                "stepping\t: ",
@@ -130,10 +130,10 @@
 
                freq = (cpu_info_list->ci_tsc_freq + 4999) / 1000000;
                fraq = ((cpu_info_list->ci_tsc_freq + 4999) / 10000) % 100;
-               l = snprintf(p, left, "CPU MHz\t\t: %qd.%qd\n",
+               l = snprintf(p, left, "cpu MHz\t\t: %qd.%qd\n",
                    freq, fraq);
        } else
-               l = snprintf(p, left, "CPU MHz\t\t: unknown\n");
+               l = snprintf(p, left, "cpu MHz\t\t: unknown\n");
 
        left -= l;
        p += l;



Home | Main Index | Thread Index | Old Index