提交 c456b89a 编写于 作者: M Mark Brown

regulator: core: Don't corrupt display when printing uV offsets

We weren't taking into account the already used buffer when telling
sprintf() where to print to.
Reported-by: NStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 b787f68c
......@@ -801,7 +801,7 @@ static void print_constraints(struct regulator_dev *rdev)
}
if (constraints->uV_offset)
count += sprintf(buf, "%dmV offset ",
count += sprintf(buf + count, "%dmV offset ",
constraints->uV_offset / 1000);
if (constraints->min_uA && constraints->max_uA) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册