diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2021-10-19 19:42:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-20 16:30:34 +0300 |
commit | 5b92be649605504e1019a1ad0c95b0d74a4e2be1 (patch) | |
tree | 55857b775615133ce73c65ba2137eb57ee2de3d9 /drivers | |
parent | 0f00e70ef645e43527a1b622721ae084149c21ca (diff) | |
download | linux-5b92be649605504e1019a1ad0c95b0d74a4e2be1.tar.xz |
net-core: use netdev_* calls for kernel messages
While loading a driver and changing the number of queues, I noticed this
message in the kernel log:
"[253489.070080] Number of in use tx queues changed invalidating tc
mappings. Priority traffic classification disabled!"
But I had no idea what interface was being talked about because this
message used pr_warn().
After investigating, it appears we can use the netdev_* helpers already
defined to create predictably formatted messages, and that already handle
<unknown netdev> cases, in more of the messages in dev.c.
After this change, this message (and others) will look like this:
"[ 170.181093] ice 0000:3b:00.0 ens785f0: Number of in use tx queues
changed invalidating tc mappings. Priority traffic classification
disabled!"
One goal here was not to change the message significantly from the
original format so as to not break user's expectations, so I just
changed messages that used pr_* and generally started with %s ==
dev->name.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions