]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: make sdp memory leak print a debug
authorAmir Vadai <amirv@mellanox.co.il>
Wed, 4 May 2011 06:30:24 +0000 (09:30 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:51 +0000 (05:05 -0700)
Since this is probably an accounting error and not a real memory leak - should
be a debug only for now.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c

index fdd6d0f85e9f3af673bff9d69b1fd587c60ae33f..de6407bbf31b9146e0adfad1d860e7032b7631c4 100644 (file)
@@ -2986,7 +2986,7 @@ static void __exit sdp_exit(void)
        BUG_ON(!list_empty(&sock_list));
 
        if (atomic_read(&memory_allocated))
-               printk(KERN_WARNING "SDP detected memory leak. Memory_allocated: %d\n",
+               sdp_dbg(NULL, "SDP detected memory leak. Memory_allocated: %d\n",
                       atomic_read(&memory_allocated));
 
        if (percpu_counter_sum(sockets_allocated))