mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 20:14:08 +00:00
dyndbg: display KiB of data memory used.
If booted with verbose>=1, dyndbg prints the memory usage in bytes, of builtin modules' prdebugs. KiB reads better. no functional changes. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20210525033240.35260-1-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0419bf0fe6
commit
7af5662826
1 changed files with 3 additions and 3 deletions
|
@ -1117,9 +1117,9 @@ static int __init dynamic_debug_init(void)
|
||||||
goto out_err;
|
goto out_err;
|
||||||
|
|
||||||
ddebug_init_success = 1;
|
ddebug_init_success = 1;
|
||||||
vpr_info("%d modules, %d entries and %d bytes in ddebug tables, %d bytes in __dyndbg section\n",
|
vpr_info("%d prdebugs in %d modules, %d KiB in ddebug tables, %d kiB in __dyndbg section\n",
|
||||||
modct, entries, (int)(modct * sizeof(struct ddebug_table)),
|
entries, modct, (int)((modct * sizeof(struct ddebug_table)) >> 10),
|
||||||
(int)(entries * sizeof(struct _ddebug)));
|
(int)((entries * sizeof(struct _ddebug)) >> 10));
|
||||||
|
|
||||||
/* apply ddebug_query boot param, dont unload tables on err */
|
/* apply ddebug_query boot param, dont unload tables on err */
|
||||||
if (ddebug_setup_string[0] != '\0') {
|
if (ddebug_setup_string[0] != '\0') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue