]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.fixes/kdb-read-CR.diff
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / kdb-read-CR.diff
CommitLineData
6a930a95
BS
1From: Jay Lan <jlan@sgi.com>
2Subject: [PATCH] Support '\n' in KDB
3Patch-mainline: 2.6.28-rc3-*-1 patchset
4References: bnc#442808
5
6Cliff tried to use KDB on medusa to verify a UV/KDB compatibility fix and found
7KDB needs to support '\n' in kdb_read() for medusa.
8
9I have integrated his patch to kdb mainline at 2.6.28-rc3-*-1 patchset.
10
11
12Signed-off-by: Bernhard Walle <bwalle@suse.de>
13
14---
15 kdb/kdb_io.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18--- a/kdb/kdb_io.c
19+++ b/kdb/kdb_io.c
20@@ -246,7 +246,8 @@ kdb_read(char *buffer, size_t bufsize)
21 *cp = tmp;
22 }
23 break;
24- case 13: /* enter */
25+ case 13: /* enter \r */
26+ case 10: /* enter \n */
27 *lastchar++ = '\n';
28 *lastchar++ = '\0';
29 kdb_printf("\n");