Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

embedded: fix vc_translate operator precedence

This fixes a bug in operator precedence in the newly introduced vc_translate
macro. Without this fix, the translation of some characters on the
kernel console is garbled.

This patch was copied to the e-mail list previously for testing. Now,
all reports confirm that it works, so this is an official post for
application.

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Tim Bird and committed by
David Woodhouse
4744b434 3669bc14

+1 -1
+1 -1
include/linux/vt_kern.h
··· 74 74 int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc); 75 75 76 76 #define vc_translate(vc, c) ((vc)->vc_translate[(c) | \ 77 - (vc)->vc_toggle_meta ? 0x80 : 0]) 77 + ((vc)->vc_toggle_meta ? 0x80 : 0)]) 78 78 #else 79 79 #define con_set_trans_old(arg) (0) 80 80 #define con_get_trans_old(arg) (-EINVAL)