Mtce: add host and iface name to msg debug log in hbsAgent

Story: 2002882
Task: 22845

Change-Id: If4a6768f7f210742130679afb56c5f5364273bfc
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Eric MacDonald 2018-06-08 10:49:40 -04:00 committed by Jack Ding
parent 083d38923a
commit 4d463fe074
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ int send_event ( string & hostname, unsigned int event_cmd, iface_enum iface )
event.num = 1 ;
event.parm[0] = iface ;
print_mtc_message ( LOCALHOST, MTC_CMD_TX, event, LOCALHOST , false );
print_mtc_message ( hostname, MTC_CMD_TX, event, get_iface_name_str(iface) , false );
/* remove the buffer as it is not needed for this message */
bytes_to_send = ((sizeof(mtc_message_type))-(BUF_SIZE-hostname.length())) ;