remove printfs

This commit is contained in:
hippoz 2023-01-18 01:23:07 +02:00
parent 630d5d813d
commit 796630d74e
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 1 additions and 3 deletions

View file

@ -310,8 +310,6 @@ int bus_broadcast_message(bus_t *s, int sender_index, wire_message_t *msg, wire_
bus_client_t *sender_client = &s->clients[sender_index];
printf("broadcasting message of %d bytes\n", body_end);
int left = s->clients_count;
for (int i = 0; i < BUS_MAX_CLIENTS && left > 0; i++) {
if (s->clients[i].state != BUS_CLIENT_STATE_READY) {

2
wire.c
View file

@ -142,7 +142,7 @@ int wire_parse_message(wire_context_t *c, wire_message_t *msg)
msg->fields[field_code].t.u32 = u;
} break;
default: {
printf("header: unknown field: %d\n", field_code);
WARN("header: unknown field: %d\n", field_code);
return -1;
} break;
}