Skip to contentSkip to conversation

lib/boilerplate: Fix build for mercury

PATCH Applied Ivid Suvarna 2 participants 2 messages Mar 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/boilerplate: Fix build for mercury

"commit 9da7bde" introduces rt_print_flush_buffers in ancillaries

Fixes the following error "--with-core=mercury" :

Quoted 4 lines
Quoted 4 lines

ancillaries.c: In function ‘___panic’:
ancillaries.c:129:2: error: implicit declaration of function ‘rt_print_flush_buffers’
rt_print_flush_buffers();
^

---
 lib/boilerplate/ancillaries.c | 2 ++
 1 file changed, 2 insertions(+)
lib/boilerplate/ancillaries.c +2 -0
index 7e98141..a0754cb 100644
@@ -126,7 +126,9 @@ void ___panic(const char *fn, const char *name,
 	if (asprintf(&p, "BUG in %s(): ", fn) < 0)
 		p = "BUG: ";
 	__printout(name, p, fmt, ap);
+#ifdef CONFIG_XENO_COBALT
 	rt_print_flush_buffers();
+#endif /* CONFIG_XENO_COBALT */
 	exit(1);
 }
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 20 lines · Ivid Suvarna

"commit 9da7bde" introduces rt_print_flush_buffers in ancillaries

Fixes the following error "--with-core=mercury" :

Quoted 4 lines
Quoted 4 lines

ancillaries.c: In function ‘___panic’:
ancillaries.c:129:2: error: implicit declaration of function ‘rt_print_flush_buffers’
rt_print_flush_buffers();
^

---
 lib/boilerplate/ancillaries.c | 2 ++
 1 file changed, 2 insertions(+)
lib/boilerplate/ancillaries.c +0 -0
index 7e98141..a0754cb 100644

lib/boilerplate/ancillaries.c void ___panic(const char *fn, const char *name, · line 134

Quoted 9 lines
lib/boilerplate/ancillaries.c +2 -0
@@ -126,7 +126,9 @@ void ___panic(const char *fn, const char *name,
 	if (asprintf(&p, "BUG in %s(): ", fn) < 0)
 		p = "BUG: ";
 	__printout(name, p, fmt, ap);
+#ifdef CONFIG_XENO_COBALT
 	rt_print_flush_buffers();
+#endif /* CONFIG_XENO_COBALT */
 	exit(1);
 }
 

Merged, thanks.

Signature · 1 line
Philippe.