summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-18 20:51:41 +1100
committerChris Johns <chrisj@rtems.org>2012-12-18 20:51:41 +1100
commit07e1f228ea5f1dd88642be943d78465b2e8c0558 (patch)
tree2245eed425bd6f2be76a7a9b9878a52ce1ebdf5b
parent14bef95b10e40459e4b0e25f1639d5b08b586dee (diff)
Use cerr for errors and not cout.
-rw-r--r--rtems-ld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtems-ld.cpp b/rtems-ld.cpp
index 7832b96..d051b4b 100644
--- a/rtems-ld.cpp
+++ b/rtems-ld.cpp
@@ -469,7 +469,7 @@ main (int argc, char* argv[])
::free (realname);
const std::type_info &ti = typeid (e);
realname = abi::__cxa_demangle (ti.name(), 0, 0, &status);
- std::cerr << realname << "] " << e.what () << std::endl;
+ std::cerr << realname << "] " << e.what () << std::endl << std::flush;
::free (realname);
ec = 11;
}
@@ -478,7 +478,7 @@ main (int argc, char* argv[])
/*
* Helps to know if this happens.
*/
- std::cout << "error: unhandled exception" << std::endl;
+ std::cerr << "error: unhandled exception" << std::endl;
ec = 12;
}