shithub: riscv

Download patch

ref: 708178e61514203f40f35521706b782ab0fef4d2
parent: bd0f48b3579968c011e17a4c6acce3826e4395f6
author: cinap_lenrek <[email protected]>
date: Tue Mar 15 18:19:19 EDT 2016

ppp: Small format and log fixes (thanks k0ga)

--- a/sys/src/cmd/ip/ppp/ppp.c
+++ b/sys/src/cmd/ip/ppp/ppp.c
@@ -709,10 +709,10 @@
 		}
 		break;
 	case Pipcp:
-		if(p->optmask & Fipaddr)
-{syslog(0, "ppp", "requesting %I", ppp->local);
+		if(p->optmask & Fipaddr){
+			syslog(0, "ppp", "requesting %I", ppp->local);
 			putv4o(b, Oipaddr, ppp->local);
-}
+		}
 		if(primary && (p->optmask & Fipdns))
 			putv4o(b, Oipdns, ppp->dns[0]);
 		if(primary && (p->optmask & Fipdns2))
@@ -1366,7 +1366,7 @@
 		break;
 	case Lprotorej:
 		proto = nhgets(m->data);
-		netlog("ppp: proto reject %ux", proto);
+		netlog("ppp: proto reject %ux\n", proto);
 		if(proto == Pccp)
 			newstate(ppp, ppp->ccp, Sclosed);
 		break;