EDACS: Tweak Regroup Message Verbosity; Tweak Patch Verbosity;

This commit is contained in:
lwvmobile
2024-04-12 16:05:18 -04:00
parent b7415e1855
commit 5c7f285b9d

View File

@@ -721,6 +721,9 @@ void edacs(dsd_opts * opts, dsd_state * state)
fprintf (stderr, "%s", KYEL); fprintf (stderr, "%s", KYEL);
fprintf (stderr, " System Dynamic Regroup Plan Bitmap"); fprintf (stderr, " System Dynamic Regroup Plan Bitmap");
//this message gets EXTREMELY LONG, so lets hide it behind the payload verbosity
if (opts->payload == 1)
{
// Deduplicate some code with a for (foreach would have been great here) // Deduplicate some code with a for (foreach would have been great here)
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
{ {
@@ -783,6 +786,7 @@ void edacs(dsd_opts * opts, dsd_state * state)
fprintf (stderr, "]"); fprintf (stderr, "]");
} }
} //end payload
fprintf (stderr, "%s", KNRM); fprintf (stderr, "%s", KNRM);
} }
@@ -799,8 +803,8 @@ void edacs(dsd_opts * opts, dsd_state * state)
fprintf (stderr, "%s", KMAG); //just make it stick out for now fprintf (stderr, "%s", KMAG); //just make it stick out for now
fprintf (stderr, " Patch :: SSN: %03d; SGID: %05d; Target: %07d;", ssn, sgid, target); fprintf (stderr, " Patch :: SSN: %03d; SGID: %05d; Target: %07d;", ssn, sgid, target);
fprintf (stderr, " UNK1: %X;", unk1); //this value seems to always be zero if (unk1) fprintf (stderr, " UNK1: %X;", unk1); //this value seems to always be zero
fprintf (stderr, " UNK2: %X;", unk2); //this value seems to always be zero if (unk2) fprintf (stderr, " UNK2: %X;", unk2); //this value seems to always be zero
fprintf (stderr, "%s", KNRM); fprintf (stderr, "%s", KNRM);
} }
//Serial Number Request (not seen in the wild, see US patent 20030190923, Figure 2b) //Serial Number Request (not seen in the wild, see US patent 20030190923, Figure 2b)
@@ -1723,8 +1727,12 @@ void edacs(dsd_opts * opts, dsd_state * state)
int active = (msg_1 & 0xFF); int active = (msg_1 & 0xFF);
fprintf (stderr, "%s", KYEL); fprintf (stderr, "%s", KYEL);
fprintf (stderr, " System Dynamic Regroup Plan Bitmap :: Plan Bank [%1d] Resident [", bank); fprintf (stderr, " System Dynamic Regroup Plan Bitmap");
//this message gets EXTREMELY LONG, so lets hide it behind the payload verbosity
if (opts->payload == 1)
{
fprintf (stderr, " :: Plan Bank [%1d] Resident [", bank);
int plan = bank * 8; int plan = bank * 8;
int first = 1; int first = 1;
while (resident != 0) { while (resident != 0) {
@@ -1764,6 +1772,8 @@ void edacs(dsd_opts * opts, dsd_state * state)
} }
fprintf (stderr, "]"); fprintf (stderr, "]");
} //end payload
fprintf (stderr, "%s", KNRM); fprintf (stderr, "%s", KNRM);
} }
//Assignment to Auxiliary Control Channel (6.2.4.15) //Assignment to Auxiliary Control Channel (6.2.4.15)