[PATCH] top: fix and merge code to parse /proc/meminfo

Timo Teras timo.teras at iki.fi
Mon Jul 21 11:11:29 UTC 2014


On Mon, 21 Jul 2014 13:55:38 +0300
Timo Teräs <timo.teras at iki.fi> wrote:

>  	snprintf(line_buf, LINE_BUF_SIZE,
> -		"Mem total:%s anon:%s map:%s free:%s",
> -		Z[TOTAL], Z[ANON], Z[MAP], Z[MFREE]);
> +		"Mem total:%ul anon:%ul map:%ul free:%ul",

Duh. All these should be %lu. Sending fixed patch in a minute.


More information about the busybox mailing list