Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 x86/tsc: fix double space in warning about ...



details:   https://anonhg.NetBSD.org/src/rev/75a25727a059
branches:  trunk
changeset: 952779:75a25727a059
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Feb 17 06:33:47 2021 +0000

description:
x86/tsc: fix double space in warning about TSC going backwards

diffstat:

 sys/arch/x86/x86/tsc.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r a41477dcdca2 -r 75a25727a059 sys/arch/x86/x86/tsc.c
--- a/sys/arch/x86/x86/tsc.c    Wed Feb 17 06:30:57 2021 +0000
+++ b/sys/arch/x86/x86/tsc.c    Wed Feb 17 06:33:47 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tsc.c,v 1.52 2020/06/15 20:27:30 riastradh Exp $       */
+/*     $NetBSD: tsc.c,v 1.53 2021/02/17 06:33:47 rillig Exp $  */
 
 /*-
  * Copyright (c) 2008, 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.52 2020/06/15 20:27:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.53 2021/02/17 06:33:47 rillig Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -424,8 +424,9 @@
                    __cpu_simple_lock_try(&lock)) {
                        ticks = getticks();
                        if (ticks - lastwarn >= hz) {
-                               printf("WARNING: TSC time went backwards "
-                                   " by %u\n", (unsigned)(prev - cur));
+                               printf(
+                                   "WARNING: TSC time went backwards by %u\n",
+                                   (unsigned)(prev - cur));
                                lastwarn = ticks;
                        }
                        __cpu_simple_unlock(&lock);



Home | Main Index | Thread Index | Old Index