mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
arm: stm32mp: migrate cmd_stm32prog to log macro
Change debug and pr_ macro to log macro. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
eb653acd63
commit
711b5bc0a2
5 changed files with 78 additions and 78 deletions
|
@ -56,7 +56,7 @@ static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
link = LINK_SERIAL;
|
||||
|
||||
if (link == LINK_UNDEFINED) {
|
||||
pr_err("not supported link=%s\n", argv[1]);
|
||||
log_err("not supported link=%s\n", argv[1]);
|
||||
return CMD_RET_USAGE;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
data = (struct stm32prog_data *)malloc(sizeof(*data));
|
||||
|
||||
if (!data) {
|
||||
pr_err("Alloc failed.");
|
||||
log_err("Alloc failed.");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
stm32prog_data = data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue