diff options
| author | 2015-06-22 11:19:48 +0100 | |
|---|---|---|
| committer | 2015-06-22 11:19:48 +0100 | |
| commit | 24ba1bb3ef1970169388d337203030947a928a15 (patch) | |
| tree | 371c11b3c5d8e3a52df3bcf5ca90d8db34fbf32e | |
| parent | Linux 4.1-rc8 (diff) | |
| parent | regulator: core: fix constraints output buffer (diff) | |
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
| -rw-r--r-- | drivers/regulator/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 443eaab933fc..53ed2d46071e 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -779,7 +779,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; @@ -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) { |
