NetBSD Problem Report #9570
Received: (qmail 23545 invoked from network); 8 Mar 2000 07:54:43 -0000
Message-Id: <200003080741.CAA00790@zorkmid.mit.edu>
Date: Wed, 8 Mar 2000 02:41:59 -0500 (EST)
From: John Hawkinson <jhawk@mit.edu>
Reply-To: jhawk@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: ddb prints spurrious newlines
X-Send-Pr-Version: 3.95
>Number: 9570
>Category: kern
>Synopsis: ddb prints spurrious newlines
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 07 23:57:00 +0000 2000
>Closed-Date: Wed Mar 08 08:32:48 +0000 2000
>Last-Modified: Wed Mar 08 08:33:08 +0000 2000
>Originator: John Hawkinson
>Release: NetBSD 1.4.1
>Organization:
MIT
>Environment:
System: NetBSD zorkmid.mit.edu 1.4.1 NetBSD 1.4.1 (ZORKMID) #59: Wed Mar 8 02:08:10 EST 2000 jhawk@zorkmid.mit.edu:/usr/src/sys/arch/i386/compile/ZORKMID i386
>Description:
ddb sometimes prints two newlines if it tries to write to
the 80th column of the screen. This is evident in some stack
traces.
>How-To-Repeat:
Use 't' a lot. Sorry, still no serial console and the inclination
to write down these cases longhand and transcribe them is not
present.
>Fix:
===================================================================
RCS file: sys/ddb/RCS/db_output.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** sys/ddb/db_output.c 2000/03/08 03:25:16 1.1
--- sys/ddb/db_output.c 2000/03/08 07:27:13 1.2
***************
*** 151,157 ****
cnputc(c);
db_output_position++;
if (db_max_width >= DB_MIN_MAX_WIDTH
! && db_output_position >= db_max_width-1) {
/* auto new line */
cnputc('\n');
db_output_position = 0;
--- 151,157 ----
cnputc(c);
db_output_position++;
if (db_max_width >= DB_MIN_MAX_WIDTH
! && db_output_position >= db_max_width) {
/* auto new line */
cnputc('\n');
db_output_position = 0;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jdolecek
State-Changed-When: Wed Mar 8 00:32:48 PST 2000
State-Changed-Why:
Fixed, thanks.
>Unformatted:
(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.