New name reflects purpose (count bytes used), verbose is just print
condition, and counting proceeds either way.

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 f1f7467..c787d1d 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -1033,7 +1033,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 bytes_used = 0;
 
        if (__start___verbose == __stop___verbose) {
                pr_warn("_ddebug table is empty in a "
@@ -1045,7 +1045,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)
+               bytes_used += strlen(iter->modname) + strlen(iter->function)
                        + strlen(iter->filename) + strlen(iter->format);
 
                if (strcmp(modname, iter->modname)) {
@@ -1067,7 +1067,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));
+               bytes_used + (int)(__stop___verbose - __start___verbose));
 
        /* apply ddebug_query boot param, dont unload tables on err */
        if (ddebug_setup_string[0] != '\0') {
-- 
1.7.11.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