]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: Improve debug message in clk_set_default_rates()
authorSimon Glass <sjg@chromium.org>
Mon, 21 Jan 2019 21:53:19 +0000 (14:53 -0700)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:59:12 +0000 (16:59 +0100)
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>
drivers/clk/clk-uclass.c

index 6d7a514006503da1da3b02a83426eb76d24576bc..844b87cc337cf49c0dd5bc7f6b67cf0f4c16e93b 100644 (file)
@@ -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;
                }
        }