diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-24 20:44:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-24 20:44:34 +0000 |
commit | 86ba147f547e44230075efab78252c08bc8d8c2e (patch) | |
tree | 6376f98a68555af3b62356fcc2d0f7b310afa452 /libgo/runtime/go-assert.c | |
parent | 6fac31b418c9bbceaaab53ef8e4be166609bda4a (diff) | |
download | gcc-86ba147f547e44230075efab78252c08bc8d8c2e.zip gcc-86ba147f547e44230075efab78252c08bc8d8c2e.tar.gz gcc-86ba147f547e44230075efab78252c08bc8d8c2e.tar.bz2 |
runtime: Copy runtime_printf from other Go library.
From-SVN: r187848
Diffstat (limited to 'libgo/runtime/go-assert.c')
-rw-r--r-- | libgo/runtime/go-assert.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> +#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 (); } |