shithub: riscv

Download patch

ref: 9adf75a7091c7bd2afefbeba62a2525d50df4404
parent: 6cd063199d1ab6892c11f74b4b80a16087f62847
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);
 }