static int max_childs;
static int max_childs_running;
static unsigned long long expected_seqnum;
-static char log[32];
+static char udev_log[32];
static LIST_HEAD(msg_list);
static LIST_HEAD(exec_list);
intval = (int *) usend_msg.envbuf;
info("udevd message (SET_LOG_PRIORITY) received, udev_log_priority=%i", *intval);
udev_log_priority = *intval;
- sprintf(log, "UDEV_LOG=%i", udev_log_priority);
- putenv(log);
+ sprintf(udev_log, "UDEV_LOG=%i", udev_log_priority);
+ putenv(udev_log);
break;
case UDEVD_SET_MAX_CHILDS:
intval = (int *) usend_msg.envbuf;
pos[0] = '\0';
if (msg->action == NULL) {
- err("no ACTION in payload found, skip event '%s'", buffer);
+ info("no ACTION in payload found, skip event '%s'", buffer);
free(msg);
return NULL;
}
if (errno == EADDRINUSE)
dbg("another udevd running, exit");
else
- dbg("error initialising udevd socket: %s", strerror(errno));
+ dbg("error initializing udevd socket: %s", strerror(errno));
goto exit;
}
info("initialize max_childs_running to %u", max_childs_running);
/* export log_priority , as called programs may want to follow that setting */
- sprintf(log, "UDEV_LOG=%i", udev_log_priority);
- putenv(log);
+ sprintf(udev_log, "UDEV_LOG=%i", udev_log_priority);
+ putenv(udev_log);
while (!udev_exit) {
struct uevent_msg *msg;