aboutsummaryrefslogtreecommitdiff
path: root/drivers/st/clk/stm32mp1_clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/st/clk/stm32mp1_clk.c')
-rw-r--r--drivers/st/clk/stm32mp1_clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/st/clk/stm32mp1_clk.c b/drivers/st/clk/stm32mp1_clk.c
index 7dff98b1b..1dc08d804 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])) {