Skip to content

Commit 241463f

Browse files
committed
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]
1 parent 49968cf commit 241463f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/debugobjects.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
13031303
struct debug_obj *obj, *new;
13041304
struct hlist_node *tmp;
13051305
HLIST_HEAD(objects);
1306-
int i, cnt = 0;
1306+
int i;
13071307

13081308
for (i = 0; i < ODEBUG_POOL_SIZE; i++) {
13091309
obj = kmem_cache_zalloc(cache, GFP_KERNEL);
@@ -1330,11 +1330,8 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
13301330
/* copy object data */
13311331
*new = *obj;
13321332
hlist_add_head(&new->node, &db->list);
1333-
cnt++;
13341333
}
13351334
}
1336-
1337-
pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used);
13381335
return true;
13391336
free:
13401337
hlist_for_each_entry_safe(obj, tmp, &objects, node) {

0 commit comments

Comments
 (0)