diff options
author | Lukasz Luba <lukasz.luba@arm.com> | 2020-11-17 16:47:59 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-11-23 20:27:58 +0300 |
commit | b4ba76fb1c999384c1b0840d216d42abcd611024 (patch) | |
tree | 70ea8ad7e4b8df995150a54862f1496b6a8a662e /Documentation/userspace-api/media/v4l/pixfmt-rgb.rst | |
parent | 8a9d881f22d7a0e06a46a326d0880fb45a06d3b5 (diff) | |
download | linux-b4ba76fb1c999384c1b0840d216d42abcd611024.tar.xz |
powercap: Adjust printing the constraint name with new line
The constrain name has limit of size 30, which sometimes might be hit.
When this happens the new line might get lost. Prevent this and set the
max limit for name string length equal 29. This would result is proper
string clamping (when needed) and storing '\n' at index 29 and '\0' at 30,
so similarly as desired originally.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/userspace-api/media/v4l/pixfmt-rgb.rst')
0 files changed, 0 insertions, 0 deletions