git: 9front

Download patch

ref: 2cfec7519eef4bb8e94d6a42744831b916926b58
parent: 82b64623741d8a738ebcdcae6abcdc6c7c68128c
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 20 17:16:27 EDT 2011

sb16: return Blocksize instead of buffer size

--- a/sys/src/9/pc/audiosb16.c
+++ b/sys/src/9/pc/audiosb16.c
@@ -503,9 +503,9 @@
 	Ctlr *ctlr = adev->ctlr;
 
 	return snprint((char*)a, n, 
-		"bufsize %6lud buffered %6ld "
+		"bufsize %6d buffered %6ld "
 		"offset %10lud time %19lld\n",
-		ctlr->ring.nbuf, buffered(&ctlr->ring),
+		Blocksize, buffered(&ctlr->ring),
 		ctlr->totcount, ctlr->tottime);
 }
 
--