NetBSD Problem Report #17387

Received: (qmail 24876 invoked by uid 605); 25 Jun 2002 18:52:53 -0000
Message-Id: <20020625170523.8CFD9AE@proven.weird.com>
Date: Tue, 25 Jun 2002 13:05:23 -0400 (EDT)
From: woods@weird.com (Greg A. Woods)
Sender: gnats-bugs-owner@netbsd.org
Reply-To: woods@planix.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org
Subject: i386 installboot error messages need improvement
X-Send-Pr-Version: 3.95

>Number:         17387
>Category:       port-i386
>Synopsis:       i386 installboot error messages need improvement
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 25 18:54:02 +0000 2002
>Closed-Date:    Sun Nov 30 20:30:18 +0000 2003
>Last-Modified:  Sun Nov 30 20:30:18 +0000 2003
>Originator:     Greg A. Woods
>Release:        NetBSD-current 2002/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 
Architecture: i386
Machine: i386
>Description:

	the installboot error messages complain about problems without
	giving the details necessary to fix those problems...

>How-To-Repeat:

>Fix:

	this same kind of fix should probably be made for other
	architectures too....


Index: installboot.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/syssrc/sys/arch/i386/stand/installboot/installboot.c,v
retrieving revision 1.15
diff -c -c -r1.15 installboot.c
*** installboot.c	10 Sep 1999 16:45:27 -0000	1.15
--- installboot.c	25 Jun 2002 17:00:44 -0000
***************
*** 196,202 ****

  		/* need new entry */
  	        if (fraglist->numentries > fraglist->maxentries - 1) {
! 			errx(1, "not enough fragment space in bootcode\n");
  			return (-1);
  		}

--- 196,204 ----

  		/* need new entry */
  	        if (fraglist->numentries > fraglist->maxentries - 1) {
! 			errx(1, "not enough fragment space in bootcode: need %d, max %d\n",
! 			     fraglist->numentries,
! 			     fraglist->maxentries);
  			return (-1);
  		}

***************
*** 338,344 ****
  		printf("%s: block number %d, size %u table blocks: %d/%d\n",
  		       diskdev, blkno, size, ndb, fraglist->maxentries);
  	if (ndb > fraglist->maxentries) {
! 		errx(1, "not enough fragment space in bootcode\n");
  		return (-1);
  	}

--- 340,347 ----
  		printf("%s: block number %d, size %u table blocks: %d/%d\n",
  		       diskdev, blkno, size, ndb, fraglist->maxentries);
  	if (ndb > fraglist->maxentries) {
! 		errx(1, "not enough fragment space in bootcode, need %d more\n",
! 		     ndb - fraglist->maxentries);
  		return (-1);
  	}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dsl 
State-Changed-When: Sun Nov 30 20:29:55 UTC 2003 
State-Changed-Why:  
The boot code doesn't work that way anymore. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.