Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2003 12:53:36 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 35228 for review
Message-ID:  <200307301953.h6UJratA072005@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=35228

Change 35228 by jhb@jhb_laptop on 2003/07/30 12:53:28

	Reset db_newlines when we setup the paging function.

Affected files ...

.. //depot/projects/smpng/sys/ddb/db_output.c#7 edit

Differences ...

==== //depot/projects/smpng/sys/ddb/db_output.c#7 (text+ko) ====

@@ -62,7 +62,7 @@
 #define	NEXT_TAB(i) \
 	((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width)
 db_expr_t	db_max_width = 79;		/* output line width */
-static int	db_newlines = 0;		/* # lines this page */
+static int	db_newlines;			/* # lines this page */
 static int	db_maxlines = -1;		/* max lines per page */
 static db_page_calloutfcn_t *db_page_callout = NULL;
 static void	*db_page_callout_arg = NULL;
@@ -125,7 +125,6 @@
 		    if (db_newlines >= db_maxlines) {
 			    db_maxlines = -1;
 			    db_page_callout(db_page_callout_arg);
-			    db_newlines = 0;
 		    }
 	    }
 	}
@@ -161,6 +160,7 @@
 	db_page_callout = callout;
 	db_page_callout_arg = arg;
 	db_maxlines = maxlines;
+	db_newlines = 0;
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307301953.h6UJratA072005>