]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: update nfp_X logging definitions
authorDylan Muller <dylan.muller@corigine.com>
Tue, 12 Apr 2022 15:26:00 +0000 (17:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 13:29:28 +0000 (14:29 +0100)
commit589dd63318e86494e384a058579e8287e1bc31e6
treed043a751c5b40f16a134104a68ed918366e3bff2
parentc563e20b711403cbe93a08b2d7770b626ee6b5fb
nfp: update nfp_X logging definitions

Previously it was not possible to determine which code path was responsible
for generating a certain message after a call to the nfp_X messaging
definitions for cases of duplicate strings. We therefore modify nfp_err,
nfp_warn, nfp_info, nfp_dbg and nfp_printk to print the corresponding file
and line number where the nfp_X definition is used.

Signed-off-by: Dylan Muller <dylan.muller@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h