aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-01 11:55:48 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-01 19:51:50 +0100
commite4204631bccaf33145133e980df395b4db309ac2 (patch)
tree40a5e1311a0aa425d1adb5db6c207fdb816fc5fd
parentc265c1206d3675c0bb6f7aba5bb9195e8124a878 (diff)
diag_log: rough verification if response matches request
-rw-r--r--src/diag_log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/diag_log.c b/src/diag_log.c
index 302787b..e27d0c2 100644
--- a/src/diag_log.c
+++ b/src/diag_log.c
@@ -126,7 +126,9 @@ void diag_log_enable_all_supported_family(struct diag_instance *di, uint8_t fami
}
rx = diag_transceive_msg(di, msg);
- /* FIXME */
+ if (rx->l2h[0] != 0x53)
+ fprintf(stderr, "Error enabling logs for family %d\n", family);
+ /* FIXME: further validation of response */
msgb_free(rx);
}