From 3431ca3eea9bfaab6ced44922beb9e6bb7a2abc1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 6 Dec 2011 10:54:31 -0500 Subject: [PATCH] Fix loglevel value enable: use isdigit rather than isalpha Signed-off-by: Mathieu Desnoyers --- liblttng-ust/ltt-probes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust/ltt-probes.c b/liblttng-ust/ltt-probes.c index 090126e4..b683b81b 100644 --- a/liblttng-ust/ltt-probes.c +++ b/liblttng-ust/ltt-probes.c @@ -264,7 +264,7 @@ void _probes_create_loglevel_events(struct loglevel_entry *entry, if (!(event_desc->loglevel)) continue; ev_ll = *event_desc->loglevel; - if (isalpha(entry->name[0])) { + if (isdigit(entry->name[0])) { if (atoll(entry->name) == ev_ll->value) { match = 1; } -- 2.34.1