linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] embedded: fix vc_translate operator precedence
@ 2008-08-01 21:05 Tim Bird
  2008-08-04  8:29 ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Bird @ 2008-08-01 21:05 UTC (permalink / raw)
  To: linux-embedded; +Cc: linux kernel

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>
---
 vt_kern.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h
index 14c0e91..8c8119f 100644
--- a/include/linux/vt_kern.h
+++ b/include/linux/vt_kern.h
@@ -74,7 +74,7 @@ void con_protect_unimap(struct vc_data *vc, int rdonly);
 int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc);

 #define vc_translate(vc, c) ((vc)->vc_translate[(c) |			\
-					(vc)->vc_toggle_meta ? 0x80 : 0])
+					((vc)->vc_toggle_meta ? 0x80 : 0)])
 #else
 #define con_set_trans_old(arg) (0)
 #define con_get_trans_old(arg) (-EINVAL)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-04 18:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 21:05 [PATCH] embedded: fix vc_translate operator precedence Tim Bird
2008-08-04  8:29 ` Geert Uytterhoeven
2008-08-04  8:31   ` David Woodhouse
2008-08-04  8:33     ` Geert Uytterhoeven
2008-08-04 18:18   ` Tim Bird

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).