New name reflects purpose (count mem used), verbose is just print
condition, and bytes is too generic.

Signed-off-by: Jim Cromie <jim.cro...@gmail.com>
---
 lib/dynamic_debug.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 6bc34aa..0cc715c 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -978,7 +978,7 @@ static int __init dynamic_debug_init(void)
        char *cmdline;
        int ret = 0;
        int n = 0, entries = 0, modct = 0;
-       int verbose_bytes = 0;
+       int sz_used = 0;
 
        if (__start___verbose == __stop___verbose) {
                pr_warn("_ddebug table is empty in a "
@@ -990,7 +990,7 @@ static int __init dynamic_debug_init(void)
        iter_start = iter;
        for (; iter < __stop___verbose; iter++) {
                entries++;
-               verbose_bytes += strlen(iter->modname) + strlen(iter->function)
+               sz_used += strlen(iter->modname) + strlen(iter->function)
                        + strlen(iter->filename) + strlen(iter->format);
 
                if (strcmp(modname, iter->modname)) {
@@ -1012,7 +1012,7 @@ static int __init dynamic_debug_init(void)
        vpr_info("%d modules, %d entries and %d bytes in ddebug tables,"
                " %d bytes in (readonly) verbose section\n",
                modct, entries, (int)( modct * sizeof(struct ddebug_table)),
-               verbose_bytes + (int)(__stop___verbose - __start___verbose));
+               sz_used + (int)(__stop___verbose - __start___verbose));
 
        /* apply ddebug_query boot param, dont unload tables on err */
        if (ddebug_setup_string[0] != '\0') {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to