On Fri, 17 Mar 2017 16:51:15 +0100
Olivier Matz <olivier.m...@6wind.com> wrote:

> +static int
> +rte_log_lookup(const char *name)
> +{
> +     size_t i;
> +
> +     for (i = 0; i < rte_logs.dynamic_types_len; i++) {
> +             if (rte_logs.dynamic_types[i].name == NULL)
> +                     continue;
> +             if (strcmp(name, rte_logs.dynamic_types[i].name) == 0)
> +                     return i;
> +     }
> +
> +     return -1;
> +}

Maybe use strcasecmp to allow for compatibility with old upper case names?

Reply via email to