remove old debug logging

This commit is contained in:
hippoz 2022-12-24 00:52:12 +02:00
parent ec156a1b14
commit 3da74dd1ae
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 3 additions and 8 deletions

View file

@ -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) { if (client->unique_name_index < 0 || !destination_field->present) {
return -1; 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); struct jb_client *target = jb_server_name_find_client(s, destination_field->t.str);
if (!target) { if (!target) {
uint8_t error_reply_data[512]; uint8_t error_reply_data[512];

10
wire.c
View file

@ -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; size_t header_fields_end = c->byte_cursor + msg->header_fields_length;
printf(" > start parse!\n");
while (c->byte_cursor < header_fields_end) { while (c->byte_cursor < header_fields_end) {
uint8_t field_code = *TRY_NONNULL(uint8_t*, wire_get_u8(c), -1); uint8_t field_code = *TRY_NONNULL(uint8_t*, wire_get_u8(c), -1);
TRY_NONNULL(char*, wire_get_signature(c, NULL), -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_MEMBER: /* through */
case DBUS_HEADER_FIELD_DESTINATION: { case DBUS_HEADER_FIELD_DESTINATION: {
char *str = TRY_NONNULL(char*, wire_get_string(c, NULL), -1); 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; msg->fields[field_code].t.str = str;
} break; } break;
case DBUS_HEADER_FIELD_SIGNATURE: { case DBUS_HEADER_FIELD_SIGNATURE: {
char *str = TRY_NONNULL(char*, wire_get_signature(c, NULL), -1); 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; msg->fields[field_code].t.str = str;
} break; } break;
case DBUS_HEADER_FIELD_REPLY_SERIAL: { case DBUS_HEADER_FIELD_REPLY_SERIAL: {
uint32_t u = *TRY_NONNULL(uint32_t*, wire_get_u32(c), -1); 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; msg->fields[field_code].t.u32 = u;
} break; } break;
default: { 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 */ /* header ends at 8 byte boundry */
TRY_NONNULL(bool, wire_align(c, 8), -1); TRY_NONNULL(bool, wire_align(c, 8), -1);