112
117
clog(LOG_DEBUG, "called with: %s\n", ev);
114
119
/* try to parse the %[a-zA-Z0-9]:%d-%d format first */
115
if (sscanf(ev, "%32[a-zA-Z0-9]:%d-%d", atz_name, &(ret->min), &(ret->max)) == 3) {
120
if (sscanf(ev, "%32[a-zA-Z0-9_]:%d-%d", atz_name, &(ret->min), &(ret->max)) == 3) {
116
121
/* validate zone name and assign pointer to struct thermal_zone */
117
122
if ((ret->tz = get_thermal_zone(atz_name)) == NULL) {
118
123
clog(LOG_ERR, "non existent thermal zone %s!\n", atz_name);