shithub: riscv

Download patch

ref: 9a337f8dfc3b9a2100d41c6fc4cde54dfa601359
parent: 094f0c96015f549c2e04ca90282bbf13736c1982
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jan 6 21:27:00 EST 2016

venti/fixarenas: replace %z fmt with %Z

--- a/sys/src/cmd/venti/srv/fixarenas.c
+++ b/sys/src/cmd/venti/srv/fixarenas.c
@@ -17,8 +17,8 @@
 
 #define ROUNDUP(x,n)		(((x)+(n)-1)&~((n)-1))
 
-#pragma varargck type "z" uvlong
-#pragma varargck type "z" vlong
+#pragma varargck type "Z" uvlong
+#pragma varargck type "Z" vlong
 #pragma varargck type "t" uint
 
 enum
@@ -61,7 +61,7 @@
  * Format number in simplest way that is okay with unittoull.
  */
 static int
-zfmt(Fmt *fmt)
+Zfmt(Fmt *fmt)
 {
 	vlong x;
 	
@@ -1894,7 +1894,7 @@
 	file = argv[0];
 	
 	ventifmtinstall();
-	fmtinstall('z', zfmt);
+	fmtinstall('Z', Zfmt);
 	fmtinstall('t', tfmt);
 	quotefmtinstall();