audioscience / avdecc-lib

Simple C++ library for implementing IEEE1722.1 (AVB Device Enumeration, Discovery and Control)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACMP and AECP have a different post_log_msg parameter order

vronchetti opened this issue · comments

Sequence ID and command status (the last two parameters) are flipped:

aecp_controller_state_machine.cpp:

            log_imp_ref->post_log_msg(LOGGING_LEVEL_ERROR,
                                      "RESPONSE_RECEIVED, 0x%llx, %s, %s, %d, %d, %s",
                                      jdksavdecc_uint64_get(&id, 0),
                                      utility::aem_cmd_value_to_name(cmd_type),
                                      utility::aem_desc_value_to_name(desc_type),
                                      desc_index,
                                      jdksavdecc_aecpdu_common_get_sequence_id(frame, ETHER_HDR_SIZE),
                                      utility::aem_cmd_status_value_to_name(status));

acmp_controller_state_machine.cpp:

            log_imp_ref->post_log_msg(LOGGING_LEVEL_ERROR,
                                      "RESPONSE_RECEIVED, 0x%llx, %s, %s, %s, %s, %d",
                                      end_station_entity_id,
                                      utility::acmp_cmd_value_to_name(msg_type),
                                      "NULL",
                                      "NULL",
                                      utility::acmp_cmd_status_value_to_name(status),
                                      seq_id);

An application that parses "RESPONSE_RECEIVED" type log messages would benefit from consistency. Any objection to command status last?

Nope :-)