diff options
| author | David Lechner <[email protected]> | 2026-05-06 18:05:31 -0500 |
|---|---|---|
| committer | David Lechner <[email protected]> | 2026-06-10 15:31:42 -0500 |
| commit | 2258b6419a9fb94a62c566d7804fe4ff551fae7a (patch) | |
| tree | d18fbfa9c2c2cac107edd191e8580af64ea31820 /contrib/apps/httpserver | |
| parent | b581ec125a9f97404d38b2b85aeb1065fcaa2539 (diff) | |
pinctrl: mediatek: use scnprintf() instead of snprintf()
Replace snprintf() with scnprintf() in the MediaTek pinctrl driver.
snprintf() returns the number of characters that _would_ have been
written if the buffer were large enough, while scnprintf() returns the
number of characters actually written to the buffer. Since we use the
return value to advance the buffer pointer, we need to use scnprintf()
to have the correct pointer arithmetic.
Fixes: 76da7482cf39 ("pinctrl: mediatek: print bias info along with pinmux")
Reviewed-by: Julien Stephan <[email protected]>
Link: https://patch.msgid.link/20260506-mtk-pinctrl-fix-scnprintf-v1-1-56b99d5809db@baylibre.com
Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver')
0 files changed, 0 insertions, 0 deletions
