From: Mathieu Desnoyers Date: Tue, 6 Dec 2011 15:54:31 +0000 (-0500) Subject: Fix loglevel value enable: use isdigit rather than isalpha X-Git-Tag: v1.9.1~17 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=3431ca3eea9bfaab6ced44922beb9e6bb7a2abc1;p=lttng-ust.git Fix loglevel value enable: use isdigit rather than isalpha Signed-off-by: Mathieu Desnoyers --- 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; }