From 96e582635a31771d6d6e32ffb0fc454c6df22759 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 19 Apr 2013 14:42:05 -0700 Subject: [PATCH] snapshot: use perror() --- snapshot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.34.1