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)
commit9386ebccfc599de5578a278ffb16d90cc696969a
treed043a751c5b40f16a134104a68ed918366e3bff2
parent735cb16bfe5349e14edf9f51c48c4ea86e676ee0
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