X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=fs%2Fproc%2Fmeminfo.c;h=65a72ab5747169e6dab29b95bd57e460b583078b;hb=d1be35cb6f96975d792a1535d3fe9b75239065ee;hp=6bb20f8642590f72163adc591831754f8b34a961;hpb=7b47c66cfa203288c43851260edeeb0fae56f692;p=sfrench%2Fcifs-2.6.git diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 6bb20f864259..65a72ab57471 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c @@ -26,20 +26,7 @@ void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) static void show_val_kb(struct seq_file *m, const char *s, unsigned long num) { - char v[32]; - static const char blanks[7] = {' ', ' ', ' ', ' ',' ', ' ', ' '}; - int len; - - len = num_to_str(v, sizeof(v), num << (PAGE_SHIFT - 10)); - - seq_write(m, s, 16); - - if (len > 0) { - if (len < 8) - seq_write(m, blanks, 8 - len); - - seq_write(m, v, len); - } + seq_put_decimal_ull_width(m, s, num << (PAGE_SHIFT - 10), 8); seq_write(m, " kB\n", 4); }