pc64: fix devcons format strings for memory sizes
This commit is contained in:
parent
88cc09a580
commit
0fdb1578ef
1 changed files with 6 additions and 4 deletions
|
@ -606,15 +606,17 @@ consread(Chan *c, void *buf, long n, vlong off)
|
||||||
"%lud kernel\n"
|
"%lud kernel\n"
|
||||||
"%lud/%lud user\n"
|
"%lud/%lud user\n"
|
||||||
"%lud/%lud swap\n"
|
"%lud/%lud swap\n"
|
||||||
"%lud/%lud kernel malloc\n"
|
"%llud/%llud kernel malloc\n"
|
||||||
"%lud/%lud kernel draw\n",
|
"%llud/%llud kernel draw\n",
|
||||||
(uvlong)conf.npage*BY2PG,
|
(uvlong)conf.npage*BY2PG,
|
||||||
(uvlong)BY2PG,
|
(uvlong)BY2PG,
|
||||||
conf.npage-conf.upages,
|
conf.npage-conf.upages,
|
||||||
palloc.user-palloc.freecount, palloc.user,
|
palloc.user-palloc.freecount, palloc.user,
|
||||||
conf.nswap-swapalloc.free, conf.nswap,
|
conf.nswap-swapalloc.free, conf.nswap,
|
||||||
mainmem->cursize, mainmem->maxsize,
|
(uvlong)mainmem->cursize,
|
||||||
imagmem->cursize, imagmem->maxsize);
|
(uvlong)mainmem->maxsize,
|
||||||
|
(uvlong)imagmem->cursize,
|
||||||
|
(uvlong)imagmem->maxsize);
|
||||||
|
|
||||||
return readstr((ulong)offset, buf, n, tmp);
|
return readstr((ulong)offset, buf, n, tmp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue