diff options
author | cbdev <cb@cbcdn.com> | 2020-04-20 20:38:58 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-04-20 20:38:58 +0200 |
commit | 8773fca1f7d2ffed68b6af4967b537d989a1e5b5 (patch) | |
tree | 079cce18262307c244bddd554be2467822a01f64 /backends/osc.c | |
parent | f053dc36fd515e8d7952e1bdefdc0050226a27c4 (diff) | |
download | midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.tar.gz midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.tar.bz2 midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.zip |
Print platform-specific error messages for socket calls
Diffstat (limited to 'backends/osc.c')
-rw-r--r-- | backends/osc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/osc.c b/backends/osc.c index 72a7b50..8b552b9 100644 --- a/backends/osc.c +++ b/backends/osc.c @@ -696,7 +696,7 @@ static int osc_output_channel(instance* inst, size_t channel){ //output packet if(sendto(data->fd, xmit_buf, offset, 0, (struct sockaddr*) &(data->dest), data->dest_len) < 0){ - LOGPF("Failed to transmit packet: %s", strerror(errno)); + LOGPF("Failed to transmit packet: %s", mmbackend_socket_strerror(errno)); } return 0; } @@ -917,7 +917,7 @@ static int osc_handle(size_t num, managed_fd* fds){ #else if(bytes_read < 0 && errno != EAGAIN){ #endif - LOGPF("Failed to receive data for instance %s: %s", inst->name, strerror(errno)); + LOGPF("Failed to receive data for instance %s: %s", inst->name, mmbackend_socket_strerror(errno)); } if(bytes_read == 0){ |