summaryrefslogtreecommitdiff
path: root/user/kbuild/fix-nodes-newline-escape.patch
blob: 7f61e87fd9612f7de2e9b4f74900ba12670ffd50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Without this patch, the newline is swallowed and
the generated 'nodes.c' will not be compilable.

The bug is in whatever code parses this file, but
this may be the only occurrence of this behavior.

diff -ur a/src/kash/nodes.c.pat b/src/kash/nodes.c.pat
--- a/src/kash/nodes.c.pat	2023-10-30 22:27:23.308897026 +0000
+++ b/src/kash/nodes.c.pat	2023-10-30 22:27:36.781294302 +0000
@@ -77,7 +77,7 @@
 #ifdef KASH_SEPARATE_PARSER_ALLOCATOR
 	if (n != NULL) {
 		unsigned refs = pstackretain(n->pblock);
-		TRACE2((psh, "copyfunc: %p - %u refs\n", n->pblock, refs)); K_NOREF(refs);
+		TRACE2((psh, "copyfunc: %p - %u refs\\n", n->pblock, refs)); K_NOREF(refs);
 	}
 	return n;
 #else