snapshot: use perror()
authorBrian Norris <banorris@uci.edu>
Fri, 19 Apr 2013 21:42:05 +0000 (14:42 -0700)
committerBrian Norris <banorris@uci.edu>
Fri, 19 Apr 2013 21:42:05 +0000 (14:42 -0700)
snapshot.cc

index e5df30abe2ec39697a04cdc66241bda8b1c07d05..56bdeb1c4a0756899aa368412b969808e76f8c8a 100644 (file)
@@ -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) {
        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) {
                exit(EXIT_FAILURE);
        }
 #endif
        if (sigaction(SIGSEGV, &sa, NULL) == -1) {
-               model_print("SIGACTION CANNOT BE INSTALLED\n");
+               perror("sigaction(SIGSEGV)");
                exit(EXIT_FAILURE);
        }
 
                exit(EXIT_FAILURE);
        }