}
}
- D(INTERFACE, "run %s for interface '%s'\n", action, proto->iface->name);
+ D(INTERFACE, "run %s for interface '%s'", action, proto->iface->name);
config = blobmsg_format_json(state->config, true);
if (!config)
return -1;
bool v6)
{
struct blob_attr *cur;
- int rem;
+ size_t rem;
blobmsg_for_each_attr(cur, attr, rem) {
if (blobmsg_type(cur) != BLOBMSG_TYPE_TABLE) {
- DPRINTF("Ignore wrong route type: %d\n", blobmsg_type(cur));
+ D(INTERFACE, "Ignore wrong route type: %d", blobmsg_type(cur));
continue;
}
bool v6)
{
struct blob_attr *cur;
- int rem;
+ size_t rem;
blobmsg_for_each_attr(cur, attr, rem) {
if (blobmsg_type(cur) != BLOBMSG_TYPE_TABLE) {
- DPRINTF("Ignore wrong neighbor type: %d\n", blobmsg_type(cur));
+ D(INTERFACE, "Ignore wrong neighbor type: %d", blobmsg_type(cur));
continue;
}
proto_shell_parse_data(struct interface *iface, struct blob_attr *attr)
{
struct blob_attr *cur;
- int rem;
+ size_t rem;
blobmsg_for_each_attr(cur, attr, rem)
interface_add_data(iface, cur);
{
struct blob_attr *cur;
int argc = 0;
- int rem;
+ size_t rem;
if (!attr)
goto out;
struct blob_attr *cur;
char *data[16];
int n_data = 0;
- int rem;
+ size_t rem;
if (!tb[NOTIFY_ERROR])
return UBUS_STATUS_INVALID_ARGUMENT;
if (iface->state == IFS_UP)
return;
- D(INTERFACE, "Interface '%s' is not up after %d sec\n",
+ D(INTERFACE, "Interface '%s' is not up after %d sec",
iface->name, state->checkup_interval);
proto_shell_handler(proto, PROTO_CMD_TEARDOWN, false);
}
if (config)
handler->config_buf = netifd_handler_parse_config(&handler->config, config);
- DPRINTF("Add handler for script %s: %s\n", script, proto->name);
+ D(INTERFACE, "Add handler for script %s: %s", script, proto->name);
add_proto_handler(proto);
}