Skip to content
Snippets Groups Projects
Commit 919b4858 authored by Jagan Teki's avatar Jagan Teki Committed by Jaehoon Chung
Browse files

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:
parent 6d0e34bf
No related branches found
No related tags found
No related merge requests found
...@@ -1751,7 +1751,9 @@ int mmc_init(struct mmc *mmc) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment