[PVFS2-CVS] commit by slang in pvfs2/src/common/statecomp: codegen.c

CVS commit program cvs at parl.clemson.edu
Fri Jun 3 12:19:04 EDT 2005


Update of /anoncvs/pvfs2/src/common/statecomp
In directory parlweb:/tmp/cvs-serv12358/src/common/statecomp

Modified Files:
      Tag: slang-event-changes-branch
	codegen.c 
Log Message:
* added event logging for states
* moved state debug code to state-machine so all state start/end
points get debug messages automatically
* added textlog stuff.  This allows us to write the default event
queue out to a text file that can be converted to slog2 later.


Index: codegen.c
===================================================================
RCS file: /anoncvs/pvfs2/src/common/statecomp/codegen.c,v
diff -p -u -r1.16 -r1.16.6.1
--- codegen.c	11 Jan 2005 14:00:27 -0000	1.16
+++ codegen.c	3 Jun 2005 15:19:04 -0000	1.16.6.1
@@ -38,7 +38,9 @@ void gen_machine(char *machine_name,
 
 void gen_state_start(char *state_name)
 {
-    fprintf(out_file,"static union PINT_state_array_values ST_%s[] = {\n", state_name);
+    fprintf(out_file,"static union PINT_state_array_values ST_%s[] = {\n"
+                     "(union PINT_state_array_values) \"%s\",\n", 
+                     state_name, state_name);
 }
 
 /** generates first two lines in the state machine (I think),



More information about the PVFS2-CVS mailing list