Re: [PATCH Netfilter] net: netfilter: Replace printk() with more standardize output format.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arushi Singhal <arushisinghal19971997@xxxxxxxxx> wrote:
> I''ll resend the patch according your suggestions.
> 
> Just for curiosity wanted to ask why not netdev_*().

netfilter is not a network driver.

> > >               register_net_sysctl(net, "net/netfilter", table);
> > >       if (!net->ct.event_sysctl_header) {
> > > -             printk(KERN_ERR "nf_ct_event: can't register to
> > sysctl.\n");
> > > +             netdev_err(net->loopback_dev, "nf_ct_event: can't register
> > to sysctl.\n");

This claims that the error is related to loopback device.  Its not.

> > >                       if (!nskb) {
> > > -                             printk(KERN_WARNING "nf_queue: OOM "
> > > -                                   "in mangle, dropping packet\n");
> > > +                             netdev_warn(nskb->dev, "nf_queue: OOM "
> > > +                                         "in mangle, dropping

This now points at a random network device, but again
this condition doesn't have anything to do with a network device.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux