shithub: git9

Download patch

ref: 04703df8448c3012dc431bbb2a3e1adfa7eda4c3
parent: dc802c499dc7164aa208b919a07c5bd18701b0e1
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Sep 7 17:58:31 EDT 2020

proto logging: improve output formatting

Fix a typo and missed conversion to arrows in debug
logging.

--- a/proto.c
+++ b/proto.c
@@ -43,7 +43,7 @@
 		return -1;
 	buf[n] = 0;
 	if(chattygit)
-		fprint(2, "=r> %s:\t%.*s\n", len, nbuf, buf);
+		fprint(2, "=r=> %s:\t%.*s\n", len, nbuf, buf);
 	return n;
 }
 
@@ -70,7 +70,7 @@
 flushpkt(Conn *c)
 {
 	if(chattygit)
-		fprint(2, "writepkt: 0000\n");
+		fprint(2, "<=w= 0000\n");
 	return write(c->wfd, "0000", 4);
 }