Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7032a3dd authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

svcrpc: demote some printks to a dprintk



In general I'd rather random bad behavior on the network won't trigger a
printk.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 7c1f8b65
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1035,7 +1035,7 @@ static void svc_unregister(const struct svc_serv *serv, struct net *net)
}

/*
 * Printk the given error with the address of the client that caused it.
 * dprintk the given error with the address of the client that caused it.
 */
static __printf(2, 3)
void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...)
@@ -1049,8 +1049,7 @@ void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...)
	vaf.fmt = fmt;
	vaf.va = &args;

	net_warn_ratelimited("svc: %s: %pV",
			     svc_print_addr(rqstp, buf, sizeof(buf)), &vaf);
	dprintk("svc: %s: %pV", svc_print_addr(rqstp, buf, sizeof(buf)), &vaf);

	va_end(args);
}