[cig-commits] commit: Make it less wordy by default

Mercurial hg at geodynamics.org
Fri Apr 23 13:05:07 PDT 2010


changeset:   602:5c8d91ee6b4a
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Fri Apr 23 13:03:01 2010 -0700
files:       Swarm/src/Swarm_Register.c libStgDomain/Toolbox/Toolbox.c
description:
Make it less wordy by default


diff -r b045449155c4 -r 5c8d91ee6b4a Swarm/src/Swarm_Register.c
--- a/Swarm/src/Swarm_Register.c	Tue Mar 23 08:16:05 2010 -0700
+++ b/Swarm/src/Swarm_Register.c	Fri Apr 23 13:03:01 2010 -0700
@@ -214,13 +214,13 @@ void Swarm_Register_SaveAllRegisteredSwa
 	Index                     swarmsToDumpCount = 0;
 	SwarmDump*                swarmDumper;
 	Swarm*                    swarm;
-	Stream*                   info = Journal_Register( Info_Type, (Name)self->type );
+	Stream*                   debug = Journal_Register( DebugStream_Type, (Name)self->type );
 
 	if ( swarmCount == 0  ) {
 		return;
 	}	
 	
-	Journal_Printf( info, "In %s(): about to save the swarms to disk:\n", __func__ );
+	Journal_Printf( debug, "In %s(): about to save the swarms to disk:\n", __func__ );
 
 	swarmList = Memory_Alloc_Array_Unnamed( Swarm*, swarmCount ); 
 
@@ -232,11 +232,11 @@ void Swarm_Register_SaveAllRegisteredSwa
 	}
 	
 	if ( swarmsToDumpCount == 0 ) {
-		Journal_Printf( info, "found 0 swarms that need to be checkpointed -> nothing to do\n",
+		Journal_Printf( debug, "found 0 swarms that need to be checkpointed -> nothing to do\n",
 			swarmsToDumpCount );
 	}
 	else {
-		Journal_Printf( info, "\t(found %u swarms that need to be checkpointed)\n",
+		Journal_Printf( debug, "\t(found %u swarms that need to be checkpointed)\n",
 			swarmsToDumpCount );
 
 		/* Create new SwarmDump object to check point the swarms
@@ -249,7 +249,7 @@ void Swarm_Register_SaveAllRegisteredSwa
 	}
 
 	Memory_Free( swarmList );
-	Journal_Printf( info, "%s: saving of swarms completed.\n", __func__ );
+	Journal_Printf( debug, "%s: saving of swarms completed.\n", __func__ );
 }
 
 
diff -r b045449155c4 -r 5c8d91ee6b4a libStgDomain/Toolbox/Toolbox.c
--- a/libStgDomain/Toolbox/Toolbox.c	Tue Mar 23 08:16:05 2010 -0700
+++ b/libStgDomain/Toolbox/Toolbox.c	Fri Apr 23 13:03:01 2010 -0700
@@ -72,7 +72,7 @@ void StgDomain_Toolbox_Finalise( Plugins
 void StgDomain_Toolbox_Finalise( PluginsManager* pluginsManager ) {
 	StgDomain_Finalise();
 	
-	Journal_RPrintf( Journal_Register( Info_Type, (Name)StgDomain_Toolbox_Type  ), "Finalised: StGermain Domain Toolbox.\n" );
+	Journal_RPrintf( Journal_Register( DebugStream_Type, (Name)StgDomain_Toolbox_Type  ), "Finalised: StGermain Domain Toolbox.\n" );
 }
 
 Index StgDomain_Toolbox_Register( PluginsManager* pluginsManager ) {



More information about the CIG-COMMITS mailing list