Skip to content

Commit

Permalink
zpu: Make debug output on wrong packets less scary.
Browse files Browse the repository at this point in the history
Users think that these messages indicate some sort of an issue, but
they are part of a normal UHD startup process. So we make them look
rather informational and less scary.
  • Loading branch information
chemeris committed Jul 27, 2017
1 parent f4f02a5 commit a4afe97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zpu/apps/txrx_uhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ static void handle_udp_ctrl_packet(

//ensure that the protocol versions match
if (payload_len >= sizeof(uint32_t) && ctrl_data_in->proto_ver != USRP2_FW_COMPAT_NUM){
if (ctrl_data_in->proto_ver) printf("!Error in control packet handler: Expected compatibility number %d, but got %d\n",
USRP2_FW_COMPAT_NUM, ctrl_data_in->proto_ver
if (ctrl_data_in->proto_ver) printf("Received a control packet with compatibility number %d. Replying with our compatibility number %d.\n",
ctrl_data_in->proto_ver, USRP2_FW_COMPAT_NUM
);
#ifdef UMTRX
ctrl_data_in_id = UMTRX_CTRL_ID_REQUEST;
Expand All @@ -123,7 +123,7 @@ static void handle_udp_ctrl_packet(

//ensure that this is not a short packet
if (payload_len < sizeof(usrp2_ctrl_data_t)){
printf("!Error in control packet handler: Expected payload length %d, but got %d\n",
printf("Received a short packet: Expected payload length %d, but got %d. Sending USRP2_CTRL_ID_HUH_WHAT\n",
(int)sizeof(usrp2_ctrl_data_t), payload_len
);
ctrl_data_in_id = USRP2_CTRL_ID_HUH_WHAT;
Expand Down

0 comments on commit a4afe97

Please sign in to comment.