Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 When writing a kernel core dump, di...
details: https://anonhg.NetBSD.org/src/rev/752c4c40d898
branches: trunk
changeset: 838208:752c4c40d898
user: martin <martin%NetBSD.org@localhost>
date: Mon Jan 07 13:10:44 2019 +0000
description:
When writing a kernel core dump, display the countdown w/o timestamps.
diffstat:
sys/arch/sparc64/sparc64/machdep.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 470e66f02fe1 -r 752c4c40d898 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c Mon Jan 07 13:09:47 2019 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c Mon Jan 07 13:10:44 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.290 2018/12/19 13:57:50 maxv Exp $ */
+/* $NetBSD: machdep.c,v 1.291 2019/01/07 13:10:44 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.290 2018/12/19 13:57:50 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.291 2019/01/07 13:10:44 martin Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -122,6 +122,7 @@
#define _SPARC_BUS_DMA_PRIVATE
#include <machine/autoconf.h>
#include <sys/bus.h>
+#include <sys/kprintf.h>
#include <machine/frame.h>
#include <machine/cpu.h>
#include <machine/pcb.h>
@@ -755,7 +756,8 @@
/* print out how many MBs we still have to dump */
if ((todo % (1024*1024)) == 0)
- printf_nolog("\r%6" PRIu64 " M ",
+ printf_flags(TOCONS|NOTSTAMP,
+ "\r%6" PRIu64 " M ",
todo / (1024*1024));
for (off = 0; off < n; off += PAGE_SIZE)
pmap_kenter_pa(dumpspace+off, maddr+off,
@@ -790,7 +792,8 @@
break;
case 0:
- printf("\rdump succeeded\n");
+ printf_flags(TOCONS|NOTSTAMP, "\r ");
+ printf("\ndump succeeded\n");
break;
default:
Home |
Main Index |
Thread Index |
Old Index