diff options
author | David S. Miller <davem@davemloft.net> | 2021-06-29 11:31:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-29 11:31:57 -0700 |
commit | b03cfe6fdee4cb85c4b04502f0adb3ce08ac03ba (patch) | |
tree | e2de8b3c19fe6fea9d3ff905514f53afe32f770f | |
parent | 8602e40fc8132383298f304ae060d80f210be23c (diff) | |
parent | 78ecc8903de2adf0387cbf06e5befe29c23f2739 (diff) | |
download | lwn-b03cfe6fdee4cb85c4b04502f0adb3ce08ac03ba.tar.gz lwn-b03cfe6fdee4cb85c4b04502f0adb3ce08ac03ba.zip |
Merge branch 'ndo_dflt_fdb-print'
Vladimir Oltean says:
====================
Trivial print improvements in ndo_dflt_fdb_{add,del}
These are some changes brought to the informational messages printed in
the default .ndo_fdb_add and .ndo_fdb_del method implementations.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/rtnetlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 745965e49f78..f6af3e74fc44 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3947,12 +3947,12 @@ int ndo_dflt_fdb_add(struct ndmsg *ndm, * implement its own handler for this. */ if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { - pr_info("%s: FDB only supports static addresses\n", dev->name); + netdev_info(dev, "default FDB implementation only supports local addresses\n"); return err; } if (vid) { - pr_info("%s: vlans aren't supported yet for dev_uc|mc_add()\n", dev->name); + netdev_info(dev, "vlans aren't supported yet for dev_uc|mc_add()\n"); return err; } @@ -4086,7 +4086,7 @@ int ndo_dflt_fdb_del(struct ndmsg *ndm, * implement its own handler for this. */ if (!(ndm->ndm_state & NUD_PERMANENT)) { - pr_info("%s: FDB only supports static addresses\n", dev->name); + netdev_info(dev, "default FDB implementation only supports local addresses\n"); return err; } |