• Tom Parkin's avatar
    l2tp: use standard API for warning log messages · 5ee759cd
    Tom Parkin authored
    The l2tp_* log wrappers only emit messages of a given category if the
    tunnel or session structure has the appropriate flag set in its debug
    field.  Flags default to being unset.
    
    For warning messages, this doesn't make a lot of sense since an
    administrator is likely to want to know about datapath warnings without
    needing to tweak the debug flags setting for a given tunnel or session
    instance.
    
    Modify l2tp_warn callsites to use pr_warn_ratelimited instead for
    unconditional output of warning messages.
    Signed-off-by: default avatarTom Parkin <tparkin@katalix.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5ee759cd
l2tp_ppp.c 42.2 KB