From owner-p4-projects@FreeBSD.ORG Wed Jul 30 12:53:38 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4A34737B404; Wed, 30 Jul 2003 12:53:38 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB4EB37B401 for ; Wed, 30 Jul 2003 12:53:37 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EA1D43F3F for ; Wed, 30 Jul 2003 12:53:37 -0700 (PDT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6UJrb0U072008 for ; Wed, 30 Jul 2003 12:53:37 -0700 (PDT) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6UJratA072005 for perforce@freebsd.org; Wed, 30 Jul 2003 12:53:36 -0700 (PDT) Date: Wed, 30 Jul 2003 12:53:36 -0700 (PDT) Message-Id: <200307301953.h6UJratA072005@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 35228 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 19:53:39 -0000 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; } /*