Skip to contentSkip to conversation

trace: modified is_good_name return type to bool

PATCH New Sasikantha babu 1 participant 1 message Apr 18, 2012 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace: modified is_good_name return type to bool

Modified is_good_name return type to bool, Since it returns either 0 or 1

---
 kernel/trace/trace_kprobe.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
kernel/trace/trace_kprobe.c +4 -4
index 580a05e..c0a15ff 100644
@@ -632,15 +632,15 @@ static int kretprobe_dispatcher(struct kretprobe_instance *ri,
 				struct pt_regs *regs);
 
 /* Check the name is good for event/group/fields */
-static int is_good_name(const char *name)
+static bool is_good_name(const char *name)
 {
 	if (!isalpha(*name) && *name != '_')
-		return 0;
+		return false;
 	while (*++name != '\0') {
 		if (!isalpha(*name) && !isdigit(*name) && *name != '_')
-			return 0;
+			return false;
 	}
-	return 1;
+	return true;
 }
 
 /*
Signature · 1 line
1.7.3.4