dumpsize == 0 also indicates failure to figure out where to dump

(e.g. dump partition too small), so complain in that case when trying to
dump
This commit is contained in:
jtk 1998-10-17 00:07:11 +00:00
parent 0bf09a4ae7
commit c4ffdb9200
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.329 1998/10/15 15:26:01 bad Exp $ */
/* $NetBSD: machdep.c,v 1.330 1998/10/17 00:07:11 jtk Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -1575,7 +1575,7 @@ dumpsys()
*/
if (dumpsize == 0)
cpu_dumpconf();
if (dumplo <= 0) {
if (dumplo <= 0 || dumpsize == 0) {
printf("\ndump to dev %u,%u not possible\n", major(dumpdev),
minor(dumpdev));
return;