]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(st-clock): correct types in error messages
authorYann Gautier <yann.gautier@foss.st.com>
Tue, 7 Sep 2021 07:05:44 +0000 (09:05 +0200)
committerYann Gautier <yann.gautier@st.com>
Tue, 18 Jan 2022 17:39:52 +0000 (18:39 +0100)
Replace wrong %d with the correct types.
This issue was found with the compilation flag:
-Wformat-signedness

Change-Id: Iec3817a245f964ce444b59561b777ce06c51a60a
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
drivers/st/clk/stm32mp1_clk.c

index d6794ed8687cffb5e1cc2fb0b6c6c2682661db01..3227f1c872d07a7b3a6d20728af1efca6835d691 100644 (file)
@@ -698,7 +698,7 @@ static int stm32mp1_clk_get_gated_id(unsigned long id)
                }
        }
 
-       ERROR("%s: clk id %d not found\n", __func__, (uint32_t)id);
+       ERROR("%s: clk id %lu not found\n", __func__, id);
 
        return -EINVAL;
 }
@@ -1113,7 +1113,7 @@ void __stm32mp1_clk_enable(unsigned long id, bool secure)
 
        i = stm32mp1_clk_get_gated_id(id);
        if (i < 0) {
-               ERROR("Clock %d can't be enabled\n", (uint32_t)id);
+               ERROR("Clock %lu can't be enabled\n", id);
                panic();
        }
 
@@ -1141,7 +1141,7 @@ void __stm32mp1_clk_disable(unsigned long id, bool secure)
 
        i = stm32mp1_clk_get_gated_id(id);
        if (i < 0) {
-               ERROR("Clock %d can't be disabled\n", (uint32_t)id);
+               ERROR("Clock %lu can't be disabled\n", id);
                panic();
        }