aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2024-10-07 16:49:59 +0000
committerThomas Gleixner <[email protected]>2024-10-15 15:30:31 +0000
commit241463f4fdcc845fa4a174e63a23940305cb6691 (patch)
treed059778789094369e07a65c7b95c75e3702ce414 /lib/debugobjects.c
parentdebugobjects: Reuse put_objects() on OOM (diff)
downloadkernel-241463f4fdcc845fa4a174e63a23940305cb6691.tar.gz
kernel-241463f4fdcc845fa4a174e63a23940305cb6691.zip
debugobjects: Remove pointless debug printk
It has zero value. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Zhen Lei <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 2c866d0bdd68..fc54115818a1 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -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) {