Commit 4b5f608c authored by Andrew Burger's avatar Andrew Burger

Added logging of encoded size

parent d836650d
...@@ -230,9 +230,9 @@ log_config = ...@@ -230,9 +230,9 @@ log_config =
global_log_verbosity ="medium"; global_log_verbosity ="medium";
hw_log_level ="info"; hw_log_level ="info";
hw_log_verbosity ="medium"; hw_log_verbosity ="medium";
phy_log_level ="info"; phy_log_level ="debug";
phy_log_verbosity ="medium"; phy_log_verbosity ="medium";
mac_log_level ="info"; mac_log_level ="debug";
mac_log_verbosity ="high"; mac_log_verbosity ="high";
rlc_log_level ="info"; rlc_log_level ="info";
rlc_log_verbosity ="medium"; rlc_log_verbosity ="medium";
......
...@@ -3,9 +3,9 @@ log_config = { ...@@ -3,9 +3,9 @@ log_config = {
global_log_verbosity ="medium"; global_log_verbosity ="medium";
hw_log_level ="info"; hw_log_level ="info";
hw_log_verbosity ="medium"; hw_log_verbosity ="medium";
phy_log_level ="info"; phy_log_level ="debug";
phy_log_verbosity ="medium"; phy_log_verbosity ="medium";
mac_log_level ="info"; mac_log_level ="debug";
mac_log_verbosity ="medium"; mac_log_verbosity ="medium";
rlc_log_level ="info"; rlc_log_level ="info";
rlc_log_verbosity ="medium"; rlc_log_verbosity ="medium";
......
...@@ -1280,26 +1280,27 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len ...@@ -1280,26 +1280,27 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len
{ {
case NFAPI_RACH_INDICATION: case NFAPI_RACH_INDICATION:
encoded_size = nfapi_p7_message_pack(&UL->rach_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->rach_ind, buffer, sizeof(buffer), NULL);
LOG_D(MAC, "RACH_IND sent to Proxy, Size: %d\n", encoded_size);
break; break;
case NFAPI_CRC_INDICATION: case NFAPI_CRC_INDICATION:
encoded_size = nfapi_p7_message_pack(&UL->crc_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->crc_ind, buffer, sizeof(buffer), NULL);
LOG_D(MAC, "CRC_IND sent to Proxy\n"); LOG_D(MAC, "CRC_IND sent to Proxy, Size: %d\n", encoded_size);
break; break;
case NFAPI_RX_ULSCH_INDICATION: // is this the right nfapi message_id? Ask Raymond case NFAPI_RX_ULSCH_INDICATION: // is this the right nfapi message_id? Ask Raymond
encoded_size = nfapi_p7_message_pack(&UL->rx_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->rx_ind, buffer, sizeof(buffer), NULL);
LOG_D(MAC, "RX_IND sent to Proxy\n"); LOG_D(MAC, "RX_IND sent to Proxy, Size: %d\n", encoded_size);
break; break;
case NFAPI_RX_CQI_INDICATION: // is this the right nfapi message_id? Ask Raymond case NFAPI_RX_CQI_INDICATION: // is this the right nfapi message_id? Ask Raymond
encoded_size = nfapi_p7_message_pack(&UL->cqi_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->cqi_ind, buffer, sizeof(buffer), NULL);
LOG_D(MAC, "CQI_IND sent to Proxy\n"); LOG_D(MAC, "CQI_IND sent to Proxy, Size: %d\n", encoded_size);
break; break;
case NFAPI_HARQ_INDICATION: case NFAPI_HARQ_INDICATION:
LOG_D(MAC, "HARQ_IND sent to Proxy\n"); LOG_D(MAC, "HARQ_IND sent to Proxy, Size: %d\n", encoded_size);
encoded_size = nfapi_p7_message_pack(&UL->harq_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->harq_ind, buffer, sizeof(buffer), NULL);
break; break;
case NFAPI_RX_SR_INDICATION: // is this the right nfapi message_id? Ask Raymond case NFAPI_RX_SR_INDICATION: // is this the right nfapi message_id? Ask Raymond
encoded_size = nfapi_p7_message_pack(&UL->sr_ind, buffer, sizeof(buffer), NULL); encoded_size = nfapi_p7_message_pack(&UL->sr_ind, buffer, sizeof(buffer), NULL);
LOG_D(MAC, "SR_IND sent to Proxy\n"); LOG_D(MAC, "SR_IND sent to Proxy, Size: %d\n", encoded_size);
break; break;
default: default:
LOG_E(MAC, "%s Unknown Message msg_type :: %u\n", __func__, msg_type); LOG_E(MAC, "%s Unknown Message msg_type :: %u\n", __func__, msg_type);
...@@ -1320,6 +1321,7 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len ...@@ -1320,6 +1321,7 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len
void send_standalone_dummy() void send_standalone_dummy()
{ {
static const uint16_t dummy[] = {0, 0}; static const uint16_t dummy[] = {0, 0};
LOG_D(MAC, "Dummy sent to Proxy, Size: %zu\n", sizeof(dummy));
if (send(ue_sock_descriptor, dummy, sizeof(dummy), 0) < 0) if (send(ue_sock_descriptor, dummy, sizeof(dummy), 0) < 0)
{ {
LOG_E(MAC, "send dummy to OAI UE failed: %s\n", strerror(errno)); LOG_E(MAC, "send dummy to OAI UE failed: %s\n", strerror(errno));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment