mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 15:11:33 +00:00
mmc: Print error code for mmc_complete_init failure
Print the error code for non-zero (failure case) instead of making debug statement without any condition, this usually gives proper clue in failure condition. Log:
This commit is contained in:
parent
6d0e34bf4e
commit
919b485834
1 changed files with 3 additions and 1 deletions
|
@ -1751,7 +1751,9 @@ int mmc_init(struct mmc *mmc)
|
||||||
|
|
||||||
if (!err)
|
if (!err)
|
||||||
err = mmc_complete_init(mmc);
|
err = mmc_complete_init(mmc);
|
||||||
debug("%s: %d, time %lu\n", __func__, err, get_timer(start));
|
if (err)
|
||||||
|
printf("%s: %d, time %lu\n", __func__, err, get_timer(start));
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue