When writing a kernel core dump, display the countdown w/o timestamps.

This commit is contained in:
martin 2019-01-07 13:10:44 +00:00
parent 0eae8cc98b
commit d473da7064

View File

@ -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 1.290 2018/12/19 13:57:50 maxv Exp $");
#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: