Re: [patch 07/25] debugobjects: Remove pointless debug printk

From: Leizhen (ThunderTown)
Date: Wed Oct 09 2024 - 22:44:44 EST




On 2024/10/8 0:49, Thomas Gleixner wrote:
> It has zero value.

Reviewed-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>

>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> lib/debugobjects.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> --- a/lib/debugobjects.c
> +++ b/lib/debugobjects.c
> @@ -1303,7 +1303,7 @@ static bool __init debug_objects_replace
> 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
> /* 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) {
>
> .
>

--
Regards,
Zhen Lei