Skip to contentSkip to conversation

slab-use-__func__-to-trace-function-name.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: slab: use __func__ to trace function name
has been removed from the -mm tree. Its filename was
slab-use-__func__-to-trace-function-name.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: gumingtao <[email protected]>
Subject: slab: use __func__ to trace function name

It is better to use __func__ to trace function name.

---

 mm/slab_common.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
mm/slab_common.c renamed from mm/slab_common.c~slab-use-__func__-to-trace-function-name +6 -6
@@ -377,11 +377,11 @@ out_unlock:
 
 	if (err) {
 		if (flags & SLAB_PANIC)
-			panic("kmem_cache_create: Failed to create slab '%s'. Error %d\n",
-				name, err);
+			panic("%s: Failed to create slab '%s'. Error %d\n",
+				__func__, name, err);
 		else {
-			pr_warn("kmem_cache_create(%s) failed with error %d\n",
-				name, err);
+			pr_warn("%s(%s) failed with error %d\n",
+				__func__, name, err);
 			dump_stack();
 		}
 		return NULL;
@@ -508,8 +508,8 @@ void kmem_cache_destroy(struct kmem_cach
 
 	err = shutdown_cache(s);
 	if (err) {
-		pr_err("kmem_cache_destroy %s: Slab cache still has objects\n",
-		       s->name);
+		pr_err("%s %s: Slab cache still has objects\n",
+		       __func__, s->name);
 		dump_stack();
 	}
 out_unlock:

_

Patches currently in -mm which might be from [email protected] are