Fix loglevel value enable: use isdigit rather than isalpha
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 6 Dec 2011 15:54:31 +0000 (10:54 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 6 Dec 2011 15:54:31 +0000 (10:54 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/ltt-probes.c

index 090126e4e1c13d45dc70f14392535a8a066b79af..b683b81bb24107a769cbdfe3eaeedb0be1ac85c7 100644 (file)
@@ -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;
                                }
This page took 0.025214 seconds and 4 git commands to generate.