diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/marvell/comphy/phy-comphy-cp110.c | 2 | ||||
-rw-r--r-- | drivers/partition/partition.c | 4 | ||||
-rw-r--r-- | drivers/st/clk/stm32mp1_clk.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/marvell/comphy/phy-comphy-cp110.c b/drivers/marvell/comphy/phy-comphy-cp110.c index 8b78280b58..2b1770f087 100644 --- a/drivers/marvell/comphy/phy-comphy-cp110.c +++ b/drivers/marvell/comphy/phy-comphy-cp110.c @@ -18,7 +18,7 @@ /* #define DEBUG_COMPHY */ #ifdef DEBUG_COMPHY -#define debug(format...) printf(format) +#define debug(format...) tf_printf(format) #else #define debug(format, arg...) #endif diff --git a/drivers/partition/partition.c b/drivers/partition/partition.c index e2b468363b..5a338b8d9c 100644 --- a/drivers/partition/partition.c +++ b/drivers/partition/partition.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -24,7 +24,7 @@ static void dump_entries(int num) VERBOSE("Partition table with %d entries:\n", num); for (i = 0; i < num; i++) { - len = snprintf(name, EFI_NAMELEN, "%s", list.list[i].name); + len = tf_snprintf(name, EFI_NAMELEN, "%s", list.list[i].name); for (j = 0; j < EFI_NAMELEN - len - 1; j++) { name[len + j] = ' '; } diff --git a/drivers/st/clk/stm32mp1_clk.c b/drivers/st/clk/stm32mp1_clk.c index 7dff98b1b9..1dc08d8047 100644 --- a/drivers/st/clk/stm32mp1_clk.c +++ b/drivers/st/clk/stm32mp1_clk.c @@ -1344,7 +1344,7 @@ int stm32mp1_clk_init(void) for (i = (enum stm32mp1_pll_id)0; i < _PLL_NB; i++) { char name[12]; - sprintf(name, "st,pll@%d", i); + tf_snprintf(name, sizeof(name), "st,pll@%d", i); plloff[i] = fdt_rcc_subnode_offset(name); if (!fdt_check_node(plloff[i])) { |