gprs/llc: Don't check FCS in gprs_llc_hdr_dump
The FCS isn't computed yet (because of ciphering).
It _will_ be tested and reported as wrong later in the code
so we can just display it here and let the latter code report the
error if any.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index ff6fe4b..69c8041 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -405,9 +405,9 @@
static void gprs_llc_hdr_dump(struct gprs_llc_hdr_parsed *gph)
{
- DEBUGP(DLLC, "LLC SAPI=%u %c %c FCS=0x%06x(%s) ",
+ DEBUGP(DLLC, "LLC SAPI=%u %c %c FCS=0x%06x",
gph->sapi, gph->is_cmd ? 'C' : 'R', gph->ack_req ? 'A' : ' ',
- gph->fcs, gph->fcs_calc == gph->fcs ? "correct" : "WRONG");
+ gph->fcs);
if (gph->cmd)
DEBUGPC(DLLC, "CMD=%s ", get_value_string(llc_cmd_strs, gph->cmd));