Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2017 03:11:25 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316315 - head/usr.bin/bsdiff/bsdiff
Message-ID:  <201703310311.v2V3BPXJ019770@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Fri Mar 31 03:11:25 2017
New Revision: 316315
URL: https://svnweb.freebsd.org/changeset/base/316315

Log:
  Revert debugging that was accidently committed in r316314

Modified:
  head/usr.bin/bsdiff/bsdiff/bsdiff.c

Modified: head/usr.bin/bsdiff/bsdiff/bsdiff.c
==============================================================================
--- head/usr.bin/bsdiff/bsdiff/bsdiff.c	Fri Mar 31 03:08:07 2017	(r316314)
+++ head/usr.bin/bsdiff/bsdiff/bsdiff.c	Fri Mar 31 03:11:25 2017	(r316315)
@@ -54,12 +54,8 @@ static off_t matchlen(u_char *old,off_t 
 {
 	off_t i;
 
-printf("old=%p new=%p\n", old, new);
-//printf("oldsize=%ld newsize=%ld\n", oldsize, newsize);
-	for(i=0;(i<oldsize)&&(i<newsize);i++) {
-//printf("old[%ld] != new[%ld]\n", i, i);
+	for(i=0;(i<oldsize)&&(i<newsize);i++)
 		if(old[i]!=new[i]) break;
-	}
 
 	return i;
 }
@@ -70,9 +66,6 @@ static off_t search(off_t *I,u_char *old
 	off_t x,y;
 
 	if(en-st<2) {
-printf("oldsize=%ld, newsize=%ld\n", oldsize, newsize);
-printf("x=matchlen(old, oldsize=%ld st=%ld I[st]=%ld, new, newsize=%ld)\n", oldsize-I[st], st, I[st], newsize);
-printf("y=matchlen(old, oldsize=%ld en=%ld I[en]=%ld, new, newsize=%ld)\n", oldsize-I[en], en, I[en], newsize);
 		x=matchlen(old+I[st],oldsize-I[st],new,newsize);
 		y=matchlen(old+I[en],oldsize-I[en],new,newsize);
 



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