shithub: riscv

Download patch

ref: daed100cfb370092e7da4fb5eb99729d045dd88c
parent: 278caaf11931ec0c71fc13fd4c4794fae325c404
author: mia soweli <inbox@tachibana-labs.org>
date: Fri May 19 15:53:10 EDT 2023

ip/tftpd: make syslog messages consistent

--- a/sys/src/cmd/ip/tftpd.c
+++ b/sys/src/cmd/ip/tftpd.c
@@ -204,7 +204,7 @@
  				exits(0);
 			remoteaddr(ldir, raddr, sizeof(raddr));
 			pid = getpid();
-			syslog(0, flog, "tftp %d connection from %s dir %s",
+			syslog(0, flog, "tftpd %d connection from %s dir %s",
 				pid, raddr, ldir);
 			doserve(dfd);
 			exits("done");
@@ -227,7 +227,7 @@
 			n = strtol(val, nil, 10);
 			if (n < op->min || n > op->max) {
 				nak(fd, Errbadopt, "option value out of range");
-				syslog(dbg, flog, "tftp bad option value from "
+				syslog(dbg, flog, "tftpd bad option value from "
 					"client: %s %s", name, val);
 				sysfatal("bad option value from client: %s %s",
 					name, val);