]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
regmap: core: Report registers in hex when we can't cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Oct 2012 18:05:32 +0000 (19:05 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Oct 2012 13:37:26 +0000 (13:37 +0000)
This seems to be the most common way of reporting register numbers, it's
certainly what we do for trace.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c

index 52069d29ff12ef197c7d8a447ab27ffb7096d85e..810f5094a9a8803bb09b1dc23c7596ec002a0fe6 100644 (file)
@@ -814,7 +814,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
                                             ival);
                        if (ret) {
                                dev_err(map->dev,
-                                  "Error in caching of register: %u ret: %d\n",
+                                       "Error in caching of register: %x ret: %d\n",
                                        reg + i, ret);
                                return ret;
                        }