From f7dc5eb0728695b4a38b25bcb5f4a0438c6c765f Mon Sep 17 00:00:00 2001 From: Ondrej Zary Date: Wed, 6 May 2020 12:58:20 +0200 Subject: [PATCH] pixma: display AXIS server name in debug messages --- backend/pixma/pixma_axis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/pixma/pixma_axis.c b/backend/pixma/pixma_axis.c index 9cb003309..3f20686ac 100644 --- a/backend/pixma/pixma_axis.c +++ b/backend/pixma/pixma_axis.c @@ -568,13 +568,14 @@ sanei_axis_find_devices (const char **conf_devices, /* wait for response packets */ while (receive_packet(udp_socket, packet, sizeof(packet), &from) != 0) { struct axis_wimp_header *header = (void *)packet; -// struct axis_wimp_server_info *s_info = (void *)(packet + sizeof(struct axis_wimp_header)); + struct axis_wimp_server_info *s_info = (void *)(packet + sizeof(struct axis_wimp_header)); DBG(LOG_INFO, "got reply from %s\n", inet_ntoa(from.sin_addr)); if (header->type != (WIMP_SERVER_INFO | WIMP_REPLY)) { DBG(LOG_NOTICE, "Received invalid reply\n"); continue; } + DBG(LOG_INFO, "server name=%s\n", s_info->name); sprintf(uri, "axis://%s", inet_ntoa(from.sin_addr)); add_scanner(udp_socket, uri, attach_axis, pixma_devices);