Skip to content

Commit

Permalink
Un-comment printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jan 9, 2022
1 parent e6eb3a8 commit 94c9571
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/tl/eth/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ void XcpTl_PrintConnectionInformation(void)
Xcp_Options.tcp ? "TCP" : "UDP",
Xcp_Options.ipv6 ? "IPv6" : "IPv4"
);
Curl_inet_ntop(Xcp_Options.ipv6 ? AF_INET6 : AF_INET, &XcpTl_Connection.localAddress, &buf, 128);
printf("%s\n", buf);
// Curl_inet_ntop(Xcp_Options.ipv6 ? AF_INET6 : AF_INET, &XcpTl_Connection.localAddress, &buf, 128);
// printf("%s\n", buf);
}
#elif XCP_TRANSPORT_LAYER == XCP_ON_BTH
void XcpTl_PrintConnectionInformation(void)
Expand Down
1 change: 0 additions & 1 deletion src/tl/eth/wineth.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void XcpTl_Init(void)

memcpy(&XcpTl_Connection.localAddress, AI->ai_addr, sizeof(SOCKADDR_STORAGE));
//XcpTl_Connection.localAddress = *AI->ai_addr;
printf("%x\n", AI->ai_addr);

if (XcpTl_Connection.socketType == SOCK_STREAM) {
if (listen(serverSockets[idx], 1) == SOCKET_ERROR) {
Expand Down
6 changes: 3 additions & 3 deletions src/xcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ void Xcp_UploadSingleBlock(void)
} else {
Xcp_SetCtoOutLen(UINT16(XCP_MAX_CTO));
//printf("FULL BLOCK: %08x\n", Xcp_State.mta.address);
Xcp_CopyMemory(dst, Xcp_State.mta, (uint32_t)(XCP_MAX_CTO - 1));
Xcp_CopyMemory(dst, Xcp_State.mta, (uint32_t)(XCP_MAX_CTO - 1));
XCP_INCREMENT_MTA((XCP_MAX_CTO - 1));
Xcp_State.slaveBlockModeState.remaining -= (XCP_MAX_CTO - 1);
}
Expand Down Expand Up @@ -1996,9 +1996,9 @@ XCP_STATIC void Xcp_ProgramStart_Res(Xcp_PduType const * const pdu)
XCP_STATIC void Xcp_ProgramClear_Res(Xcp_PduType const * const pdu)
{
uint8_t mode = Xcp_GetByte(pdu, UINT8(1));
uint32_t clearRange = (XcpDaq_ListIntegerType)Xcp_GetDWord(pdu, UINT8(4));
uint32_t clearRange = Xcp_GetDWord(pdu, UINT8(4));

DBG_TRACE3("PROGRAM_CLEAR [mode: %d clearRange: 0x%x]\n\r", mode, clearRange);
DBG_TRACE3("PROGRAM_CLEAR [mode: %d clearRange: 0x%08x]\n\r", mode, clearRange);
XCP_ASSERT_PGM_ACTIVE();
}

Expand Down

0 comments on commit 94c9571

Please sign in to comment.