]> www.infradead.org Git - users/willy/xarray.git/commitdiff
debugobjects: Remove pointless debug printk
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Oct 2024 16:49:59 +0000 (18:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Oct 2024 15:30:31 +0000 (17:30 +0200)
It has zero value.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/all/20241007164913.390511021@linutronix.de
lib/debugobjects.c

index 2c866d0bdd68aaf56871edebbfbc5d610850b647..fc54115818a126b4845ccb2581158062ed894e07 100644 (file)
@@ -1303,7 +1303,7 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
        struct debug_obj *obj, *new;
        struct hlist_node *tmp;
        HLIST_HEAD(objects);
-       int i, cnt = 0;
+       int i;
 
        for (i = 0; i < ODEBUG_POOL_SIZE; i++) {
                obj = kmem_cache_zalloc(cache, GFP_KERNEL);
@@ -1330,11 +1330,8 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
                        /* copy object data */
                        *new = *obj;
                        hlist_add_head(&new->node, &db->list);
-                       cnt++;
                }
        }
-
-       pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used);
        return true;
 free:
        hlist_for_each_entry_safe(obj, tmp, &objects, node) {