We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658be46 commit fd00be9Copy full SHA for fd00be9
mm/show_mem.c
@@ -435,15 +435,18 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx)
435
struct codetag *ct = tags[i].ct;
436
struct alloc_tag *tag = ct_to_alloc_tag(ct);
437
struct alloc_tag_counters counter = alloc_tag_read(tag);
438
+ char bytes[10];
439
+
440
+ string_get_size(counter.bytes, 1, STRING_UNITS_2, bytes, sizeof(bytes));
441
442
/* Same as alloc_tag_to_text() but w/o intermediate buffer */
443
if (ct->modname)
- pr_notice("%12lli %8llu %s:%u [%s] func:%s\n",
- counter.bytes, counter.calls, ct->filename,
444
+ pr_notice("%12s %8llu %s:%u [%s] func:%s\n",
445
+ bytes, counter.calls, ct->filename,
446
ct->lineno, ct->modname, ct->function);
447
else
- pr_notice("%12lli %8llu %s:%u func:%s\n",
448
+ pr_notice("%12s %8llu %s:%u func:%s\n",
449
450
ct->lineno, ct->function);
451
}
452
0 commit comments