xiaoxiang781216 commented on code in PR #3800:
URL: https://github.com/apache/nuttx-apps/pull/3800#discussion_r4109831215
##########
netutils/ptpd/ptpd.c:
##########
@@ -778,13 +790,28 @@ static int ptp_initialize_state(FAR struct ptp_state_s
*state)
ret = ioctl(state->event_socket, SIOCETHTOOL, (unsigned long)&req);
if (ret < 0)
{
- ptpwarn("ETHTOOL_GET_TS_INFO failed for %s: %d\n",
- state->config->interface, errno);
+ ptperr("ETHTOOL_GET_TS_INFO failed for %s: %d\n",
Review Comment:
move to previous patch
##########
netutils/ptpd/ptpd.c:
##########
@@ -1019,7 +1046,7 @@ static int ptp_get_tx_timestamp(FAR struct ptp_state_s
*state,
else
{
ptpwarn("PTP TX HWTS: poll ret=%d revents=0x%04x errno=%d\n",
- ret, pfd.revents, errno);
+ ret, (unsigned int)pfd.revents, errno);
Review Comment:
remove the casst by changing format string
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]