]>
Commit | Line | Data |
---|---|---|
8f69975d BS |
1 | From: Jay Lan <jlan@sgi.com> |
2 | Subject: [PATCH] Support '\n' in KDB | |
3 | Patch-mainline: 2.6.28-rc3-*-1 patchset | |
4 | References: bnc#442808 | |
5 | ||
6 | Cliff tried to use KDB on medusa to verify a UV/KDB compatibility fix and found | |
7 | KDB needs to support '\n' in kdb_read() for medusa. | |
8 | ||
9 | I have integrated his patch to kdb mainline at 2.6.28-rc3-*-1 patchset. | |
10 | ||
11 | ||
12 | Signed-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"); |