From 86ba147f547e44230075efab78252c08bc8d8c2e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 24 May 2012 20:44:34 +0000 Subject: runtime: Copy runtime_printf from other Go library. From-SVN: r187848 --- libgo/runtime/go-assert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgo/runtime/go-assert.c') diff --git a/libgo/runtime/go-assert.c b/libgo/runtime/go-assert.c index 48aa072..a36f43a 100644 --- a/libgo/runtime/go-assert.c +++ b/libgo/runtime/go-assert.c @@ -7,12 +7,13 @@ #include #include +#include "runtime.h" #include "go-assert.h" void __go_assert_fail (const char *file, unsigned int lineno) { /* FIXME: Eventually we should dump a stack trace here. */ - fprintf (stderr, "%s:%u: libgo assertion failure\n", file, lineno); + runtime_printf ("%s:%U: libgo assertion failure\n", file, (uint64) lineno); abort (); } -- cgit v1.1