9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] upas/vf: remove debugging print statements
@ 2021-02-07 23:01 Michael Forney
  0 siblings, 0 replies; only message in thread
From: Michael Forney @ 2021-02-07 23:01 UTC (permalink / raw)
  To: 9front

These messages aren't useful and were presumably left over from
someone debugging this code.

diff 7316cf014f78ae5b777152f50c3ebbb7da5b82e8 55083200f5d1392076feb1bd51625d02d46a9698
--- a/sys/src/cmd/upas/vf/vf.c	Sun Feb  7 14:51:05 2021
+++ b/sys/src/cmd/upas/vf/vf.c	Sun Feb  7 15:01:36 2021
@@ -505,19 +505,15 @@
 	if(justreject)
 		return p;
 
-fprint(2, "x\n");
 	syslog(0, "mail", "vf wrapped %s %s", p->type?s_to_c(p->type):"?",
 		p->filename?s_to_c(p->filename):"?");
-fprint(2, "x\n");
 
 	boundary = mkboundary();
-fprint(2, "x\n");
 	/* print out non-mime headers */
 	for(hl = p->hl; hl != nil; hl = hl->next)
 		if(cistrncmp(s_to_c(hl->s), "content-", 8) != 0)
 			Bprint(&out, "%s", s_to_c(hl->s));
 
-fprint(2, "x\n");
 	/* add in our own multipart headers and message */
 	Bprint(&out, "Content-Type: multipart/mixed;\n");
 	Bprint(&out, "\tboundary=\"%s\"\n", s_to_c(boundary));
@@ -561,11 +557,9 @@
 		break;
 	}
 
-fprint(2, "z\n");
 	/* pass the body */
 	np = passbody(p, 0);
 
-fprint(2, "w\n");
 	/* add the new boundary and the original terminator */
 	Bprint(&out, "--%s--\n", s_to_c(boundary));
 	if(np && np->boundary){
@@ -573,7 +567,6 @@
 		Bwrite(&out, cp, Blinelen(&in));
 	}
 
-fprint(2, "a %p\n", np);
 	return np;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-07 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 23:01 [9front] upas/vf: remove debugging print statements Michael Forney

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git