History

debugobjects: Remove pointless debug printk

It has zero value.

Thomas Gleixner committed 2 years ago

Commit 241463f1 parent 49968cf1 file · +1 −4Browse files

Showing the changes to lib/debugobjects.c (1 of 1 file). Show all

Unified · Split

lib/debugobjects.c+1−4
@@ -1303,7 +1303,7 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache · 1302 unmodified lines
1303 struct debug_obj *obj, *new;1303 struct debug_obj *obj, *new;
1304 struct hlist_node *tmp;1304 struct hlist_node *tmp;
1305 HLIST_HEAD(objects);1305 HLIST_HEAD(objects);
1306 int i, cnt = 0;1306 int i;
1307 1307
1308 for (i = 0; i < ODEBUG_POOL_SIZE; i++) {1308 for (i = 0; i < ODEBUG_POOL_SIZE; i++) {
1309 obj = kmem_cache_zalloc(cache, GFP_KERNEL);1309 obj = kmem_cache_zalloc(cache, GFP_KERNEL);
@@ -1330,11 +1330,8 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache · 20 unmodified lines
1330 /* copy object data */1330 /* copy object data */
1331 *new = *obj;1331 *new = *obj;
1332 hlist_add_head(&new->node, &db->list);1332 hlist_add_head(&new->node, &db->list);
1333 cnt++;
1334 }1333 }
1335 }1334 }
1336
1337 pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used);
1338 return true;1335 return true;
1339free:1336free:
1340 hlist_for_each_entry_safe(obj, tmp, &objects, node) {1337 hlist_for_each_entry_safe(obj, tmp, &objects, node) {