summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-01-22 00:53:19 +0300
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2019-02-01 18:59:12 +0300
commit683161606312156055fc70036b93ab17cf787107 (patch)
tree3dd72e1701fd7323b378152d18abe0fb076ce0c3 /drivers/clk/clk-uclass.c
parentf60662de77282360b995e2de4798ab8763d762c5 (diff)
downloadu-boot-683161606312156055fc70036b93ab17cf787107.tar.xz
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>
Diffstat (limited to 'drivers/clk/clk-uclass.c')
-rw-r--r--drivers/clk/clk-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 6d7a514006..844b87cc33 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers/clk/clk-uclass.c
@@ -228,8 +228,8 @@ static int clk_set_default_rates(struct udevice *dev)
ret = clk_set_rate(&clk, rates[index]);
if (ret < 0) {
- debug("%s: failed to set rate on clock %d for %s\n",
- __func__, index, dev_read_name(dev));
+ debug("%s: failed to set rate on clock index %d (%ld) for %s\n",
+ __func__, index, clk.id, dev_read_name(dev));
break;
}
}