diff --git a/server.c b/server.c index 8d50c05..62251c8 100644 --- a/server.c +++ b/server.c @@ -307,7 +307,6 @@ int jb_server_client_process_message(struct jb_server *s, int i, uint8_t *data, if (client->unique_name_index < 0 || !destination_field->present) { return -1; } - printf("sending unicast message from %s\n", s->names[client->unique_name_index].name); struct jb_client *target = jb_server_name_find_client(s, destination_field->t.str); if (!target) { uint8_t error_reply_data[512]; diff --git a/wire.c b/wire.c index 4fcedb2..74bd137 100644 --- a/wire.c +++ b/wire.c @@ -130,8 +130,6 @@ int wire_parse_message(wire_context_t *c, wire_message_t *msg) size_t header_fields_end = c->byte_cursor + msg->header_fields_length; - printf(" > start parse!\n"); - while (c->byte_cursor < header_fields_end) { uint8_t field_code = *TRY_NONNULL(uint8_t*, wire_get_u8(c), -1); TRY_NONNULL(char*, wire_get_signature(c, NULL), -1); @@ -142,17 +140,17 @@ int wire_parse_message(wire_context_t *c, wire_message_t *msg) case DBUS_HEADER_FIELD_MEMBER: /* through */ case DBUS_HEADER_FIELD_DESTINATION: { char *str = TRY_NONNULL(char*, wire_get_string(c, NULL), -1); - printf("field: %s\n", str); + //printf("field: %s\n", str); msg->fields[field_code].t.str = str; } break; case DBUS_HEADER_FIELD_SIGNATURE: { char *str = TRY_NONNULL(char*, wire_get_signature(c, NULL), -1); - printf("field: %s\n", str); + //printf("field: %s\n", str); msg->fields[field_code].t.str = str; } break; case DBUS_HEADER_FIELD_REPLY_SERIAL: { uint32_t u = *TRY_NONNULL(uint32_t*, wire_get_u32(c), -1); - printf("field: %d\n", u); + //printf("field: %d\n", u); msg->fields[field_code].t.u32 = u; } break; default: { @@ -171,8 +169,6 @@ int wire_parse_message(wire_context_t *c, wire_message_t *msg) } } - printf(" > parsed!!\n"); - /* header ends at 8 byte boundry */ TRY_NONNULL(bool, wire_align(c, 8), -1);