Skip to content

Commit 6a5a27d

Browse files
committed
[rcp] Fixup print masks, disable some logging
1 parent a0ea841 commit 6a5a27d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/outputs/rcp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ rcp_send(struct rcp_session* s, enum rcp_state next_state, const char *arg)
686686
iov[2].iov_len = arg ? strlen(arg) : 0;
687687
}
688688

689-
DPRINTF(E_DBG, L_RCP, "%ld state %d send '%s%s%s'\n", s->device->id, s->state, (char*)(iov[0].iov_base), (char*)(iov[1].iov_base), (char*)(iov[2].iov_base));
689+
// DPRINTF(E_DBG, L_RCP, "Device %" PRIu64 " state %d send '%s%s%s'\n", s->device->id, s->state, (char*)(iov[0].iov_base), (char*)(iov[1].iov_base), (char*)(iov[2].iov_base));
690690

691691
if (s->sock <= 0) {
692692
DPRINTF(E_LOG, L_RCP, "Ignoring send request on %s, state = %d\n", s->address, s->state);
@@ -727,15 +727,15 @@ rcp_recv(struct rcp_session *s)
727727

728728
if (avail == 0)
729729
{
730-
DPRINTF(E_WARN, L_RCP, "protocol BUG, cmd buf (%d) exhausted %ld state %d\n", RCP_RESP_BUF_SIZE, s->device->id, s->state);
730+
DPRINTF(E_WARN, L_RCP, "Protocol BUG, cmd buf (%d) exhausted %" PRIu64 " state %d\n", RCP_RESP_BUF_SIZE, s->device->id, s->state);
731731

732732
s->state = RCP_STATE_FAILED;
733733
return -1;
734734
}
735735

736736
recvd = read(s->sock, s->respptr, avail);
737737

738-
DPRINTF(E_DBG, L_RCP, "%ld state %d recv'd %ld bytes '%s'\n", s->device->id, s->state, recvd, s->respptr);
738+
// DPRINTF(E_DBG, L_RCP, "Device %" PRIu64 " state %d recv'd %zd bytes '%s'\n", s->device->id, s->state, recvd, s->respptr);
739739
if (recvd <= 0)
740740
{
741741
DPRINTF(E_LOG, L_RCP, "Failed to read response from '%s' - %s\n", s->devname, strerror(recvd == 0 ? ECONNRESET : errno));
@@ -1057,7 +1057,7 @@ rcp_session_make(struct output_device *device, int callback_id)
10571057
s->next = rcp_sessions;
10581058
rcp_sessions = s;
10591059

1060-
DPRINTF(E_DBG, L_RCP, "Make session %ld %s at %s stream url '%s'\n", s->device->id, s->devname, s->address, s->stream_url);
1060+
DPRINTF(E_DBG, L_RCP, "Make session device %" PRIu64 " %s at %s stream url '%s'\n", s->device->id, s->devname, s->address, s->stream_url);
10611061

10621062
// s is now the official device session
10631063
outputs_device_session_add(device->id, s);

0 commit comments

Comments
 (0)