diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-06-18 15:20:37 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-06-21 09:24:42 +0000 |
commit | 08e8cab57841cd1e2cc47bb9899b16a531e1a1f5 (patch) | |
tree | 0b3da67c24d9db58890b6cf644ea435901aa8073 /src/vendorcode/cavium/bdk/libbdk-hal | |
parent | fe1d80cb08213a302a80714114ea3b9e632411ff (diff) |
src: Substitute `__FUNCTION__` with `__func__`
The former is not standard C, and we primarily use the latter form.
Change-Id: Ia7091b494ff72588fb6910710fd72165693c1ac5
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42516
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Diffstat (limited to 'src/vendorcode/cavium/bdk/libbdk-hal')
3 files changed, 6 insertions, 6 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-marvell.c b/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-marvell.c index 0efe6975e5..6c92a59249 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-marvell.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-marvell.c @@ -49,7 +49,7 @@ static void setup_marvell_phy(bdk_node_t node, int mdio_bus, int mdio_addr) { int phy_status = 0; - BDK_TRACE(PHY, "%s In SGMII mode for Marvell PHY 88E1512\n", __FUNCTION__); + BDK_TRACE(PHY, "%s In SGMII mode for Marvell PHY 88E1512\n", __func__); /* Switch to Page 18 */ phy_status = bdk_mdio_write(node, mdio_bus, mdio_addr, 22, 18); if (phy_status < 0) @@ -89,7 +89,7 @@ static void setup_marvell_phy(bdk_node_t node, int mdio_bus, int mdio_addr) int bdk_if_phy_marvell_setup(bdk_node_t node, int qlm, int mdio_bus, int phy_addr) { - BDK_TRACE(PHY,"In %s\n",__FUNCTION__); + BDK_TRACE(PHY,"In %s\n",__func__); /* Check if the PHY is marvell PHY we expect */ int phy_status = bdk_mdio_read(node, mdio_bus, phy_addr, BDK_MDIO_PHY_REG_ID1); @@ -100,13 +100,13 @@ int bdk_if_phy_marvell_setup(bdk_node_t node, int qlm, int mdio_bus, int phy_add /* Switch the marvell PHY to the correct mode */ bdk_qlm_modes_t qlm_mode = bdk_qlm_get_mode(node, qlm); - BDK_TRACE(PHY,"%s: QLM:%d QLM_MODE:%d\n",__FUNCTION__, qlm, qlm_mode); + BDK_TRACE(PHY,"%s: QLM:%d QLM_MODE:%d\n",__func__, qlm, qlm_mode); if ((qlm_mode != BDK_QLM_MODE_SGMII_1X1) && (qlm_mode != BDK_QLM_MODE_SGMII_2X1)) return 0; - BDK_TRACE(PHY,"%s: Detected Marvell Phy in SGMII mode\n", __FUNCTION__); + BDK_TRACE(PHY,"%s: Detected Marvell Phy in SGMII mode\n", __func__); for (int port = 0; port < 2; port++) { setup_marvell_phy(node, mdio_bus, phy_addr + port); diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-vetesse-8514.c b/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-vetesse-8514.c index 26c4fd45a1..796d699bf8 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-vetesse-8514.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/if/bdk-if-phy-vetesse-8514.c @@ -91,7 +91,7 @@ static void vitesse_init_script(bdk_node_t node, int mdio_bus, int phy_addr) uint16_t reg_val; uint16_t mask; - BDK_TRACE(PHY,"In %s\n",__FUNCTION__); + BDK_TRACE(PHY,"In %s\n",__func__); BDK_TRACE(PHY,"Loading init script for VSC8514\n"); ptr = init_script_rev_a; diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-cn81xx.c b/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-cn81xx.c index 303b276a8b..5582e08110 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-cn81xx.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-cn81xx.c @@ -773,7 +773,7 @@ static void __bdk_qlm_sff81xx_set_reference(bdk_node_t node, int qlm, int ref_cl } else { - bdk_error("Update %s for qlm auto config of this chip\n",__FUNCTION__); + bdk_error("Update %s for qlm auto config of this chip\n",__func__); return; } BDK_CSR_MODIFY(c, node, BDK_GSERX_REFCLK_SEL(qlm), |