summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2024-02-02 07:56:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-06 15:37:39 +0100
commit6cc3028f797a549f256d593867a769ab6a8265f2 (patch)
treee16375e5f706057d3f5ccd383d99f04fbd1f444d /scripts
parenttty: vt: use ASCII enum constants in vt_console_print() (diff)
downloadlinux-6cc3028f797a549f256d593867a769ab6a8265f2.tar.xz
linux-6cc3028f797a549f256d593867a769ab6a8265f2.zip
tty: vt: decrypt magic constants in vc_is_control()
0x0d00ff81 and 0x0800f501 are bitmasks of ASCII characters. Spell them explicitly using BIT() + ASCII constants. GENMASK() is used for the 9-bit range in CTRL_ACTION. This also modifies the 'if' checking if the masks should be applied. >From a "random" ' ' to the actual size of the bitmasks' type. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20240202065608.14019-23-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions