uds: don't output "Connection refused"
When phc2sys is started before ptp4l or it is interrupted before ptp4l has a chance to reply to its query, the "uds: sendto failed: Connection refused" message is output. This is not an interesting message. Also, don't output the "failed to send message" error from pmc_send, as all transports output errors in their send routine. Signed-off-by: Jiri Benc <jbenc@redhat.com>master
parent
4df924b253
commit
14742ef566
10
pmc_common.c
10
pmc_common.c
|
@ -143,18 +143,14 @@ static struct ptp_message *pmc_message(struct pmc *pmc, uint8_t action)
|
|||
|
||||
static int pmc_send(struct pmc *pmc, struct ptp_message *msg, int pdulen)
|
||||
{
|
||||
int cnt, err;
|
||||
int err;
|
||||
|
||||
err = msg_pre_send(msg);
|
||||
if (err) {
|
||||
pr_err("msg_pre_send failed");
|
||||
return -1;
|
||||
}
|
||||
cnt = transport_send(pmc->transport, &pmc->fdarray, 0, msg);
|
||||
if (cnt < 0) {
|
||||
pr_err("failed to send message");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
return transport_send(pmc->transport, &pmc->fdarray, 0, msg);
|
||||
}
|
||||
|
||||
static int pmc_tlv_datalen(struct pmc *pmc, int id)
|
||||
|
|
Loading…
Reference in New Issue