diff options
| author | Jim Cromie <[email protected]> | 2021-05-25 03:32:40 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-05-27 12:41:57 +0000 |
| commit | 7af5662826f7b1639490c999e6bac14ea6a79a7c (patch) | |
| tree | a682abffdae3d43c3c6aaf45cfaa1d8c86ebedad /lib/dynamic_debug.c | |
| parent | ipac: tpci200: fix kernel-doc syntax and remove filename from file header (diff) | |
| download | kernel-7af5662826f7b1639490c999e6bac14ea6a79a7c.tar.gz kernel-7af5662826f7b1639490c999e6bac14ea6a79a7c.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
| -rw-r--r-- | lib/dynamic_debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 641767b0dce2..d3ce78298832 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1117,9 +1117,9 @@ static int __init dynamic_debug_init(void) goto out_err; ddebug_init_success = 1; - vpr_info("%d modules, %d entries and %d bytes in ddebug tables, %d bytes in __dyndbg section\n", - modct, entries, (int)(modct * sizeof(struct ddebug_table)), - (int)(entries * sizeof(struct _ddebug))); + vpr_info("%d prdebugs in %d modules, %d KiB in ddebug tables, %d kiB in __dyndbg section\n", + entries, modct, (int)((modct * sizeof(struct ddebug_table)) >> 10), + (int)((entries * sizeof(struct _ddebug)) >> 10)); /* apply ddebug_query boot param, dont unload tables on err */ if (ddebug_setup_string[0] != '\0') { |
