summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@freescale.com>2013-12-17 12:34:15 (GMT)
committerMadalin-Cristian Bucur <madalin.bucur@freescale.com>2014-01-06 16:08:50 (GMT)
commit2c03e3e66ba8ea286d966468e404c01aa8eb4fe4 (patch)
tree99befb5bae96d1e2595c4d91e235de470317d9ab /drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
parentea915cd55587472c245f9cd934b97f0e3cd982b0 (diff)
downloadlinux-fsl-qoriq-2c03e3e66ba8ea286d966468e404c01aa8eb4fe4.tar.xz
dpaa_eth: reduce pr_fmt() verbosity
Make pr_fmt() less verbose except for the case when FSL_DPAA_ETH_DEBUG is enabled. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ibaee9a31a0bdfc72c5ec4314b27fd0996bfdbaf5 Reviewed-on: http://git.am.freescale.net:8181/7449 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/7698
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
index 1b77982..bfdc32b 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
@@ -29,9 +29,14 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef CONFIG_FSL_DPAA_ETH_DEBUG
#define pr_fmt(fmt) \
KBUILD_MODNAME ": %s:%hu:%s() " fmt, \
KBUILD_BASENAME".c", __LINE__, __func__
+#else
+#define pr_fmt(fmt) \
+ KBUILD_MODNAME ": " fmt
+#endif
#include <linux/init.h>
#include <linux/module.h>