From c3ca7e70616c64ec1d21215e7b5ac51529affca5 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 2 Jan 2013 17:54:45 -0800 Subject: [PATCH] snapshot: remove SSDEBUG We don't need a separate snapshotting DEBUG() macro. --- snapshot.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/snapshot.cc b/snapshot.cc index 114473d..a562b91 100644 --- a/snapshot.cc +++ b/snapshot.cc @@ -15,12 +15,6 @@ #define FAILURE(mesg) { model_print("failed in the API: %s with errno relative message: %s\n", mesg, strerror(errno)); exit(EXIT_FAILURE); } -#ifdef CONFIG_SSDEBUG -#define SSDEBUG model_print -#else -#define SSDEBUG(...) do { } while (0) -#endif - #if USE_MPROTECT_SNAPSHOT /* Each snapshotrecord lists the firstbackingpage that must be written to * revert to that snapshot */ @@ -298,7 +292,7 @@ void initSnapshotLibrary(unsigned int numbackingpages, int status; int retVal; - SSDEBUG("The process id of child is %d and the process id of this process is %d and snapshot id is %d\n", + DEBUG("The process id of child is %d and the process id of this process is %d and snapshot id is %d\n", forkedID, getpid(), snapshotid); do { @@ -353,7 +347,7 @@ snapshot_id takeSnapshot() return snapshot; #else swapcontext(&savedUserSnapshotContext, &savedSnapshotContext); - SSDEBUG("TAKESNAPSHOT RETURN\n"); + DEBUG("TAKESNAPSHOT RETURN\n"); return snapshotid; #endif } @@ -402,7 +396,7 @@ void rollBack(snapshot_id theID) */ if (!sTemp) { sTemp = 1; - SSDEBUG("Invoked rollback\n"); + DEBUG("Invoked rollback\n"); exit(EXIT_SUCCESS); } /* -- 2.34.1