Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2015 04:03:54 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284714 - stable/10/lib/libdpv
Message-ID:  <201506230403.t5N43sMj053683@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Tue Jun 23 04:03:54 2015
New Revision: 284714
URL: https://svnweb.freebsd.org/changeset/base/284714

Log:
  MFC r283863:
  Fix a debug statement. Only the callback function (performing the
  incrementing of dpv_overall_oread) knows what its purpose is (and
  often times it was bytes, not lines).
  
  MFC r283975 (araujo):
  Clean up unused variable and silence clang warnings.

Modified:
  stable/10/lib/libdpv/dprompt.c
  stable/10/lib/libdpv/dpv.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libdpv/dprompt.c
==============================================================================
--- stable/10/lib/libdpv/dprompt.c	Tue Jun 23 03:56:05 2015	(r284713)
+++ stable/10/lib/libdpv/dprompt.c	Tue Jun 23 04:03:54 2015	(r284714)
@@ -391,7 +391,6 @@ dprompt_add_files(struct dpv_file_node *
 	enum dprompt_state dstate;
 	int estext_lsize;
 	int estext_rsize;
-	int estext_size;
 	int flabel_size;
 	int hlen;
 	int lsize;
@@ -559,13 +558,11 @@ dprompt_add_files(struct dpv_file_node *
 			bg_code = "\\Zr\\Z1"; /* Red */
 			estext_lsize = fail_lsize;
 			estext_rsize = fail_rsize;
-			estext_size = fail_size;
 			estext = fail;
 		} else { /* e.g., DPV_STATUS_DONE */
 			bg_code = "\\Zr\\Z2"; /* Green */
 			estext_lsize = done_lsize;
 			estext_rsize = done_rsize;
-			estext_size = done_size;
 			estext = done;
 		}
 		switch (dstate) {

Modified: stable/10/lib/libdpv/dpv.c
==============================================================================
--- stable/10/lib/libdpv/dpv.c	Tue Jun 23 03:56:05 2015	(r284713)
+++ stable/10/lib/libdpv/dpv.c	Tue Jun 23 04:03:54 2015	(r284714)
@@ -692,7 +692,7 @@ dpv(struct dpv_config *config, struct dp
 		if (!dpv_interrupt)
 			printf("\n");
 	} else
-		warnx("%s: %lli lines read", __func__, dpv_overall_read);
+		warnx("%s: %lli overall read", __func__, dpv_overall_read);
 
 	if (dpv_interrupt || dpv_abort)
 		return (-1);



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