From: Brian Norris Date: Fri, 19 Apr 2013 21:42:05 +0000 (-0700) Subject: snapshot: use perror() X-Git-Tag: oopsla2013~30 X-Git-Url: http://demsky.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=96e582635a31771d6d6e32ffb0fc454c6df22759 snapshot: use perror() --- diff --git a/snapshot.cc b/snapshot.cc index e5df30a..56bdeb1 100644 --- a/snapshot.cc +++ b/snapshot.cc @@ -148,12 +148,12 @@ static void mprot_snapshot_init(unsigned int numbackingpages, sa.sa_sigaction = mprot_handle_pf; #ifdef MAC if (sigaction(SIGBUS, &sa, NULL) == -1) { - model_print("SIGACTION CANNOT BE INSTALLED\n"); + perror("sigaction(SIGBUS)"); exit(EXIT_FAILURE); } #endif if (sigaction(SIGSEGV, &sa, NULL) == -1) { - model_print("SIGACTION CANNOT BE INSTALLED\n"); + perror("sigaction(SIGSEGV)"); exit(EXIT_FAILURE); }