summaryrefslogtreecommitdiff
path: root/ucoolib
diff options
context:
space:
mode:
authorNicolas Schodet2012-12-05 00:17:14 +0100
committerNicolas Schodet2019-10-06 23:29:59 +0200
commit0d604a33c7c5dc8dc69ae33944974615f6f3733b (patch)
tree29cb3f8274477899e482e069a27256c4cefe0449 /ucoolib
parent75c7365375a2277173caf737abe3c9a99d5017de (diff)
ucoolib/arch: make halt() a little bit more verbose
Diffstat (limited to 'ucoolib')
-rw-r--r--ucoolib/arch/arch.host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ucoolib/arch/arch.host.cc b/ucoolib/arch/arch.host.cc
index a3c0841..4b16d4a 100644
--- a/ucoolib/arch/arch.host.cc
+++ b/ucoolib/arch/arch.host.cc
@@ -37,6 +37,7 @@ arch_init (int argc, const char **argv)
void
halt ()
{
+ fprintf (stderr, "halt\n");
abort ();
}
@@ -44,7 +45,7 @@ void
halt_perror ()
{
perror ("halt");
- halt ();
+ abort ();
}
} // namespace ucoo