We don't need a separate snapshotting DEBUG() macro.
#define FAILURE(mesg) { model_print("failed in the API: %s with errno relative message: %s\n", mesg, strerror(errno)); exit(EXIT_FAILURE); }
#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 */
#if USE_MPROTECT_SNAPSHOT
/* Each snapshotrecord lists the firstbackingpage that must be written to
* revert to that snapshot */
- 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 {
forkedID, getpid(), snapshotid);
do {
return snapshot;
#else
swapcontext(&savedUserSnapshotContext, &savedSnapshotContext);
return snapshot;
#else
swapcontext(&savedUserSnapshotContext, &savedSnapshotContext);
- SSDEBUG("TAKESNAPSHOT RETURN\n");
+ DEBUG("TAKESNAPSHOT RETURN\n");
return snapshotid;
#endif
}
return snapshotid;
#endif
}
*/
if (!sTemp) {
sTemp = 1;
*/
if (!sTemp) {
sTemp = 1;
- SSDEBUG("Invoked rollback\n");
+ DEBUG("Invoked rollback\n");