diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-07 23:35:27 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-07 23:35:27 +0100 |
commit | 0fdb1578ef610846a231036d74b65716e75f6927 (patch) | |
tree | 8d479b84ae9f1e4380fe4f71152bbc07ea465ce2 /sys/src/9/port/devcons.c | |
parent | 88cc09a5800b80cf45e81531014ec8e8ba44386d (diff) |
pc64: fix devcons format strings for memory sizes
Diffstat (limited to 'sys/src/9/port/devcons.c')
-rw-r--r-- | sys/src/9/port/devcons.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index b3ee3d2c7..1e317e2b1 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -606,15 +606,17 @@ consread(Chan *c, void *buf, long n, vlong off) "%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); |