Skip to content

Commit 9ab637a

Browse files
andy-shevbroonie
authored andcommitted
regcache: Amend printf() specifiers when printing registers
In one case the 0x is provided in the formatting string, while the rest use # for that. In a couple of more cases a decimal signed value specifier is used. Amend them to use %#x when register is printed. Note, for the case, when it's related to the read/write, use %x to be in align with the similar messages in regmap core. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260302095847.2310066-4-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8e29bc8 commit 9ab637a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/base/regmap/regcache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int regcache_hw_init(struct regmap *map, int count)
112112
ret = regmap_read(map, reg, &val);
113113
map->cache_bypass = cache_bypass;
114114
if (ret != 0) {
115-
dev_err(map->dev, "Failed to read %d: %d\n",
115+
dev_err(map->dev, "Failed to read %x: %d\n",
116116
reg, ret);
117117
goto err_free;
118118
}
@@ -508,7 +508,7 @@ int regcache_sync_region(struct regmap *map, unsigned int min,
508508
bypass = map->cache_bypass;
509509

510510
name = map->cache_ops->name;
511-
dev_dbg(map->dev, "Syncing %s cache from %d-%d\n", name, min, max);
511+
dev_dbg(map->dev, "Syncing %s cache from %#x-%#x\n", name, min, max);
512512

513513
trace_regcache_sync(map, name, "start region");
514514

0 commit comments

Comments
 (0)