!ipv6_prefix_equal(&key->addr, addr, fn->fn_bit)) {
if (!allow_create) {
if (replace_required) {
- printk(KERN_WARNING
- "IPv6: Can't replace route, no match found\n");
+ pr_warn("IPv6: Can't replace route, "
+ "no match found\n");
return ERR_PTR(-ENOENT);
}
- printk(KERN_WARNING
- "IPv6: NLM_F_CREATE should be set when creating new route\n");
+ pr_warn("IPv6: NLM_F_CREATE should be set "
+ "when creating new route\n");
}
goto insert_above;
}
* That would keep IPv6 consistent with IPv4
*/
if (replace_required) {
- printk(KERN_WARNING
- "IPv6: Can't replace route, no match found\n");
+ pr_warn("IPv6: Can't replace route, no match found\n");
return ERR_PTR(-ENOENT);
}
- printk(KERN_WARNING "IPv6: NLM_F_CREATE should be set when creating new route\n");
+ pr_warn("IPv6: NLM_F_CREATE should be set "
+ "when creating new route\n");
}
/*
* We walked to the bottom of tree.
*/
if (!replace) {
if (!add)
- printk(KERN_WARNING "IPv6: NLM_F_CREATE should be set when creating new route\n");
+ pr_warn("IPv6: NLM_F_CREATE should be set when creating new route\n");
add:
rt->dst.rt6_next = iter;
if (!found) {
if (add)
goto add;
- printk(KERN_WARNING "IPv6: NLM_F_REPLACE set, but no existing node found!\n");
+ pr_warn("IPv6: NLM_F_REPLACE set, but no existing node found!\n");
return -ENOENT;
}
*ins = rt;
replace_required = 1;
}
if (!allow_create && !replace_required)
- printk(KERN_WARNING "IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE\n");
+ pr_warn("IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE\n");
fn = fib6_add_1(root, &rt->rt6i_dst.addr, sizeof(struct in6_addr),
rt->rt6i_dst.plen, offsetof(struct rt6_info, rt6i_dst),