shithub: riscv

Download patch

ref: 0fdb1578ef610846a231036d74b65716e75f6927
parent: 88cc09a5800b80cf45e81531014ec8e8ba44386d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 7 18:35:27 EST 2014

pc64: fix devcons format strings for memory sizes

--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -606,15 +606,17 @@
 			"%lud kernel\n"
 			"%lud/%lud user\n"
 			"%lud/%lud swap\n"
-			"%lud/%lud kernel malloc\n"
-			"%lud/%lud kernel draw\n",
+			"%llud/%llud kernel malloc\n"
+			"%llud/%llud kernel draw\n",
 			(uvlong)conf.npage*BY2PG,
 			(uvlong)BY2PG,
 			conf.npage-conf.upages,
 			palloc.user-palloc.freecount, palloc.user,
 			conf.nswap-swapalloc.free, conf.nswap,
-			mainmem->cursize, mainmem->maxsize,
-			imagmem->cursize, imagmem->maxsize);
+			(uvlong)mainmem->cursize,
+			(uvlong)mainmem->maxsize,
+			(uvlong)imagmem->cursize,
+			(uvlong)imagmem->maxsize);
 
 		return readstr((ulong)offset, buf, n, tmp);