summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorJean-François Lessard <jefflessard3@gmail.com>2025-09-18 08:13:13 -0400
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-10-15 18:46:01 +0200
commit9870334f486763b2d93ced6f9dcd5d009fe6ec80 (patch)
tree726d92c21876fcb95ac865ed2d45ee6a8fd180f8 /rust/helpers/helpers.c
parent66c93809487e62c4f59ef08625a3fbc0a7de6dd2 (diff)
auxdisplay: linedisp: display static message when length <= display size
Currently, when a message shorter than the display size is written, the content wraps around (e.g., "123" on a 4-digit display shows "1231") without scrolling, which is confusing and unintuitive. Change behavior to display short messages statically with space padding (e.g. "123 ") while only scrolling messages longer than the display width. This provides more natural behavior that aligns with user expectations and current linedisp_display() kernel-doc. The scroll logic is also consolidated into a helper function for clarity. No API changes are introduced. Signed-off-by: Jean-François Lessard <jefflessard3@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions