Skip to contentSkip to conversation

regmap: core: Report registers in hex when we can't cache

PATCH New Mark Brown 1 participant 1 message Oct 26, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regmap: core: Report registers in hex when we can't cache

This seems to be the most common way of reporting register numbers, it's certainly what we do for trace.

---
 drivers/base/regmap/regmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regmap.c +1 -1
index 0585726..354b5cb 100644
@@ -850,7 +850,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;
 			}
Signature · 1 line
1.7.10.4