Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 15e184af authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: add compat support for sysfs and /proc capabilities output



Input core displays capabilities bitmasks in form of one or more longs printed
in hex form and separated by spaces. Unfortunately it does not work well
for 32-bit applications running on 64-bit kernels since applications expect
that number is "worth" only 32 bits when kernel advances by 64 bits.

Fix that by ensuring that output produced for compat tasks uses 32-bit units.

Reported-and-tested-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e6edbdc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment