mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 13:15:40 -05:00
EDACS: Tweak Regroup Message Verbosity; Tweak Patch Verbosity;
This commit is contained in:
@@ -721,6 +721,9 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
||||
fprintf (stderr, "%s", KYEL);
|
||||
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)
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
@@ -783,6 +786,7 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
||||
|
||||
fprintf (stderr, "]");
|
||||
}
|
||||
} //end payload
|
||||
|
||||
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, " Patch :: SSN: %03d; SGID: %05d; Target: %07d;", ssn, sgid, target);
|
||||
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 (unk1) fprintf (stderr, " UNK1: %X;", unk1); //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);
|
||||
}
|
||||
//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);
|
||||
|
||||
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 first = 1;
|
||||
while (resident != 0) {
|
||||
@@ -1764,6 +1772,8 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
|
||||
fprintf (stderr, "]");
|
||||
} //end payload
|
||||
|
||||
fprintf (stderr, "%s", KNRM);
|
||||
}
|
||||
//Assignment to Auxiliary Control Channel (6.2.4.15)
|
||||
|
||||
Reference in New Issue
Block a user