- Additional --check output should go to stderror.

This commit is contained in:
ccremers 2006-07-31 11:31:52 +00:00
parent cc358c5df3
commit 80eafb7374

View File

@ -14,9 +14,11 @@ addSTerm (const System sys, Term t, Termlist fromlist, Termlist tolist)
if (switches.check) if (switches.check)
{ {
globalError++;
eprintf ("[ Adding "); eprintf ("[ Adding ");
termPrint (t2); termPrint (t2);
eprintf (" to the initial intruder knowledge]\n"); eprintf (" to the initial intruder knowledge]\n");
globalError--;
} }
} }
@ -95,6 +97,7 @@ initialIntruderKnowledge (const System sys)
{ {
if (switches.check) if (switches.check)
{ {
globalError++;
eprintf ("Computing initial intruder knowledge.\n\n"); eprintf ("Computing initial intruder knowledge.\n\n");
eprintf ("Agent names : "); eprintf ("Agent names : ");
termlistPrint (sys->agentnames); termlistPrint (sys->agentnames);
@ -102,6 +105,7 @@ initialIntruderKnowledge (const System sys)
eprintf ("Untrusted agents : "); eprintf ("Untrusted agents : ");
termlistPrint (sys->untrusted); termlistPrint (sys->untrusted);
eprintf ("\n"); eprintf ("\n");
globalError--;
} }
/* /*
@ -178,11 +182,13 @@ initialIntruderKnowledge (const System sys)
if (switches.check) if (switches.check)
{ {
globalError++;
eprintf ("Role "); eprintf ("Role ");
termPrint (r->nameterm); termPrint (r->nameterm);
eprintf (" knows "); eprintf (" knows ");
termlistPrint (r->knows); termlistPrint (r->knows);
eprintf ("\n"); eprintf ("\n");
globalError--;
} }
addListKnowledge (r->knows, r->nameterm); addListKnowledge (r->knows, r->nameterm);