]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/kernel/omap/beagle/0004-zeroMAP-Open-your-eyes.patch
snort: Update urls for rules download (2.9.7.0) in 'ids.cgi'
[ipfire-2.x.git] / src / patches / kernel / omap / beagle / 0004-zeroMAP-Open-your-eyes.patch
CommitLineData
d006af40
AF
1From 81ff7627ad0d958a5c156cb7d880af8707e14f47 Mon Sep 17 00:00:00 2001
2From: Alexander Holler <holler@ahsoftware.de>
3Date: Wed, 4 Jul 2012 00:03:04 +0200
4Subject: [PATCH 4/5] zeroMAP: Open your eyes!
5
6Signed-off-by: Alexander Holler <holler@ahsoftware.de>
7---
8 kernel/printk.c | 7 +++++++
9 1 files changed, 7 insertions(+), 0 deletions(-)
10
11diff --git a/kernel/printk.c b/kernel/printk.c
12index 22e070f..3678740 100644
13--- a/kernel/printk.c
14+++ b/kernel/printk.c
15@@ -1759,6 +1759,13 @@ static int __init console_setup(char *str)
16 char *s, *options, *brl_options = NULL;
17 int idx;
18
19+#ifdef CONFIG_SERIAL_OMAP
20+ if (!strncmp(str, "tty0", 4) && '0' <= str[4] && '9' >= str[4]) {
21+ str[3] = 'O';
22+ pr_warn("We are opening your eyes, assuming you want to use an OMAP based serial driver and not a zeroMAP based one! ;)\n");
23+ pr_warn("Which means 'tty0%s' was changed to 'ttyO%s' automagically for your pleasure.\n", str+4, str+4);
24+ }
25+#endif
26 #ifdef CONFIG_A11Y_BRAILLE_CONSOLE
27 if (!memcmp(str, "brl,", 4)) {
28 brl_options = "";
29--
301.7.7.6
31