ref: 8027044c335afb86d7dbba6fb1b3adcd2ce04907
parent: fc81c094e3234ae8f0fb2e892fee32b1b7e01fd9
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);
--
⑨