string_to_loglevel
if ((loglevel = string_to_loglevel(d)) >= 0)
if ((level = string_to_loglevel((char *)debugopt)) < 0) {
int string_to_loglevel(const char *);