Module Name: src
Committed By: martin
Date: Mon Jan 7 13:10:44 UTC 2019
Modified Files:
src/sys/arch/sparc64/sparc64: machdep.c
Log Message:
When writing a kernel core dump, display the countdown w/o timestamps.
To generate a diff of this commit:
cvs rdiff -u -r1.290 -r1.291 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/machdep.c
diff -u src/sys/arch/sparc64/sparc64/machdep.c:1.290 src/sys/arch/sparc64/sparc64/machdep.c:1.291
--- src/sys/arch/sparc64/sparc64/machdep.c:1.290 Wed Dec 19 13:57:50 2018
+++ src/sys/arch/sparc64/sparc64/machdep.c Mon Jan 7 13:10:44 2019
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v
#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 @@ dumpsys(void)
/* 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 @@ dumpsys(void)
break;
case 0:
- printf("\rdump succeeded\n");
+ printf_flags(TOCONS|NOTSTAMP, "\r ");
+ printf("\ndump succeeded\n");
break;
default: