Direct all prints to STDERR

Direct all prints to STDERR
Take 2
This commit is contained in:
lwvmobile
2022-02-10 16:56:37 -05:00
committed by GitHub
parent 05b9e29724
commit fcf680a138
32 changed files with 623 additions and 626 deletions

View File

@@ -177,7 +177,7 @@ correct_golay_dibits_6(char* corrected_hex_data, int hex_count, AnalogSignal* an
#ifdef HEURISTICS_DEBUG
if (analog_signal_array[analog_signal_index].dibit != dibit)
{
printf("HDU data word corrected from %i to %i, analog value %i\n",
fprintf (stderr, "HDU data word corrected from %i to %i, analog value %i\n",
analog_signal_array[analog_signal_index].dibit, dibit, analog_signal_array[analog_signal_index].value);
}
#endif
@@ -199,7 +199,7 @@ correct_golay_dibits_6(char* corrected_hex_data, int hex_count, AnalogSignal* an
#ifdef HEURISTICS_DEBUG
if (analog_signal_array[analog_signal_index].dibit != dibit)
{
printf("HDU parity corrected from %i to %i, analog value %i\n",
fprintf (stderr, "HDU parity corrected from %i to %i, analog value %i\n",
analog_signal_array[analog_signal_index].dibit, dibit, analog_signal_array[analog_signal_index].value);
}
#endif
@@ -457,14 +457,14 @@ processHDU(dsd_opts* opts, dsd_state* state)
{
algidhex = strtol (algid, NULL, 2);
kidhex = strtol (kid, NULL, 2);
printf ("mi: %s algid: $%x kid: $%x\n", mi, algidhex, kidhex);
fprintf (stderr, "mi: %s algid: $%x kid: $%x\n", mi, algidhex, kidhex);
}
if (opts->p25lc == 1)
{
printf ("mfid: %s tgid: %s ", mfid, tgid);
fprintf (stderr, "mfid: %s tgid: %s ", mfid, tgid);
if (opts->p25tg == 0)
{
printf ("\n");
fprintf (stderr, "\n");
}
}
@@ -506,6 +506,6 @@ processHDU(dsd_opts* opts, dsd_state* state)
}
if (opts->p25tg == 1)
{
printf ("tg: %li\n", talkgroup);
fprintf (stderr, "tg: %li\n", talkgroup);
}
}