Commit 683161606312156055fc70036b93ab17cf787107

Authored by Simon Glass
Committed by Philipp Tomsich
1 parent f60662de77

clk: Improve debug message in clk_set_default_rates()

It is helpful to print the clock number as well as the index, so that this
can be looked up in the binding file. Update the debug() statement to do
this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/clk/clk-uclass.c
... ... @@ -228,8 +228,8 @@
228 228  
229 229 ret = clk_set_rate(&clk, rates[index]);
230 230 if (ret < 0) {
231   - debug("%s: failed to set rate on clock %d for %s\n",
232   - __func__, index, dev_read_name(dev));
  231 + debug("%s: failed to set rate on clock index %d (%ld) for %s\n",
  232 + __func__, index, clk.id, dev_read_name(dev));
233 233 break;
234 234 }
235 235 }