9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] upas/fs: add missing newline to a debug print
@ 2021-10-09 10:53 risto.salminen
  2021-10-09 14:21 ` ori
  0 siblings, 1 reply; 2+ messages in thread
From: risto.salminen @ 2021-10-09 10:53 UTC (permalink / raw)
  To: 9front

Noticed while doing some debugging.

diff a8ad3fb3d00551bad97e7b10a9666821fe4b601a uncommitted
--- a/sys/src/cmd/upas/fs/cache.c
+++ b/sys/src/cmd/upas/fs/cache.c
@@ -353,7 +353,7 @@
 	if(mb->fetch == nil || m->cstate&Cbody)
 		return 0;
 	o = m->end - m->start;
-	dprint("cachebody %lud [%D] %lud %lud %s", m->id, m->fileid, o, m->size, cstate(m));
+	dprint("cachebody %lud [%D] %lud %lud %s\n", m->id, m->fileid, o, m->size, cstate(m));
 	if(o < m->size)
 	if(fetch(mb, m, o, m->size - o) < 0)
 		return -1;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] upas/fs: add missing newline to a debug print
  2021-10-09 10:53 [9front] upas/fs: add missing newline to a debug print risto.salminen
@ 2021-10-09 14:21 ` ori
  0 siblings, 0 replies; 2+ messages in thread
From: ori @ 2021-10-09 14:21 UTC (permalink / raw)
  To: 9front

Quoth risto.salminen@gmx.com:
> Noticed while doing some debugging.
> 
> diff a8ad3fb3d00551bad97e7b10a9666821fe4b601a uncommitted
> --- a/sys/src/cmd/upas/fs/cache.c
> +++ b/sys/src/cmd/upas/fs/cache.c
> @@ -353,7 +353,7 @@
>  	if(mb->fetch == nil || m->cstate&Cbody)
>  		return 0;
>  	o = m->end - m->start;
> -	dprint("cachebody %lud [%D] %lud %lud %s", m->id, m->fileid, o, m->size, cstate(m));
> +	dprint("cachebody %lud [%D] %lud %lud %s\n", m->id, m->fileid, o, m->size, cstate(m));
>  	if(o < m->size)
>  	if(fetch(mb, m, o, m->size - o) < 0)
>  		return -1;
> 

Applied, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-09 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09 10:53 [9front] upas/fs: add missing newline to a debug print risto.salminen
2021-10-09 14:21 ` ori

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://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/ https://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