summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2015-06-09 20:09:42 +0000
committerZefan Li <lizefan@huawei.com>2015-10-22 09:20:03 +0800
commit0e782ba3f77e7474d0ea1d04a739396b2436cf54 (patch)
tree7b477f5c678950e190a04f11d1b197b6cba19ea9
parent675350c16cb51f1fc0037e60f6315830c541ca60 (diff)
downloadlwn-0e782ba3f77e7474d0ea1d04a739396b2436cf54.tar.gz
lwn-0e782ba3f77e7474d0ea1d04a739396b2436cf54.zip
regulator: core: fix constraints output buffer
commit a7068e3932eee8268c4ce4e080a338ee7b8a27bf upstream. The buffer for condtraints debug isn't big enough to hold the output in all cases. So fix this issue by increasing the buffer. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Zefan Li <lizefan@huawei.com>
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 0d71557cf7a3..c8f160db9d0e 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -749,7 +749,7 @@ static int suspend_prepare(struct regulator_dev *rdev, suspend_state_t state)
static void print_constraints(struct regulator_dev *rdev)
{
struct regulation_constraints *constraints = rdev->constraints;
- char buf[80] = "";
+ char buf[160] = "";
int count = 0;
int ret;