Lines Matching refs:PDBG
141 PDBG( bjnp_dbg( LOG_DEBUG3, "lookup_scanner: Checking for %s in %s\n", makemodel, cfg->model));
152 PDBG( bjnp_dbg (LOG_DEBUG, "lookup_scanner: Scanner model found: Name %s(%s) matches %s\n", cfg->model, cfg->name, makemodel));
158 PDBG( bjnp_dbg (LOG_DEBUG, "lookup_scanner: Scanner model %s not found, giving up!\n", makemodel));
487 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find method in %s (offset %d)\n",
510 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find hostname or address in %s\n", devname));
529 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find hostname or address in %s\n", devname));
557 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find port in %s (have \"%s\")\n", devname, start));
573 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Argument string too long in %s\n", devname));
636 PDBG (bjnp_dbg (LOG_DEBUG, "setup_udp_socket: Setting up a UDP socket, dest: %s port %d\n",
641 PDBG (bjnp_dbg
650 PDBG (bjnp_dbg
678 PDBG (bjnp_dbg( LOG_CRIT, "udp_command: ERROR - Can not setup socket\n") );
686 PDBG (bjnp_dbg
711 PDBG (bjnp_dbg
719 PDBG (bjnp_dbg
731 PDBG (bjnp_dbg
758 PDBG (bjnp_dbg (LOG_DEBUG2, "get_scanner_id: Get scanner identity\n"));
759 PDBG (bjnp_hexdump (LOG_DEBUG2, (char *) &cmd,
765 PDBG (bjnp_dbg (LOG_DEBUG, "get_scanner_id: ERROR - Failed to retrieve scanner identity:\n"));
768 PDBG (bjnp_dbg (LOG_DEBUG2, "get_scanner_id: scanner identity:\n"));
769 PDBG (bjnp_hexdump (LOG_DEBUG2, resp_buf, resp_len));
785 PDBG (bjnp_dbg (LOG_INFO, "get_scanner_id: Scanner identity string = %s - length = %d\n", scanner_id, id_len));
792 PDBG (bjnp_dbg (LOG_INFO, "get_scanner_id: Scanner model = %s\n", model));
829 PDBG (bjnp_dbg(LOG_INFO, "get_scanner_name: Name for %s not found : %s\n",
849 PDBG (bjnp_dbg (LOG_INFO,
861 PDBG (bjnp_dbg (LOG_INFO,
870 PDBG ( bjnp_dbg (LOG_INFO, "get_scanner_name: Forward lookup of %s failed, using IP-address", ip_address));
903 PDBG (bjnp_dbg
915 PDBG (bjnp_dbg
928 PDBG (bjnp_dbg
940 PDBG (bjnp_dbg
969 PDBG (bjnp_dbg (LOG_DEBUG,
988 PDBG (bjnp_dbg (LOG_DEBUG,
1004 PDBG (bjnp_dbg (LOG_INFO, "prepare_socket: %s is IPv4 capable, sending broadcast, socket = %d\n",
1009 PDBG (bjnp_dbg (LOG_INFO, "prepare_socket: ERROR - %s is IPv4 capable, but failed to create a socket.\n",
1024 PDBG (bjnp_dbg (LOG_DEBUG,
1039 PDBG (bjnp_dbg (LOG_INFO, "prepare_socket: %s is IPv6 capable, sending broadcast, socket = %d\n",
1044 PDBG (bjnp_dbg (LOG_INFO, "prepare_socket: ERROR - %s is IPv6 capable, but failed to create a socket.\n",
1085 PDBG (bjnp_dbg (LOG_INFO,
1108 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_finish_job: Finish scanjob\n"));
1109 PDBG (bjnp_hexdump
1117 PDBG (bjnp_dbg
1123 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_finish_job: Finish scanjob response\n"));
1124 PDBG (bjnp_hexdump (LOG_DEBUG2, resp_buf, resp_len));
1186 PDBG (bjnp_dbg (LOG_INFO, "bjnp_poll_scanner: unknown packet type: %d\n", type));
1194 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_poll_scanner: Poll details (type %d)\n", type));
1195 PDBG (bjnp_hexdump (LOG_DEBUG2, cmd_buf,
1202 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_poll_scanner: Poll details response:\n"));
1203 PDBG (bjnp_hexdump (LOG_DEBUG2, resp_buf, resp_len));
1215 PDBG( bjnp_dbg(LOG_INFO, "bjnp_poll_scanner: received button status!\n"));
1216 PDBG (bjnp_hexdump( LOG_DEBUG2, status, size ));
1251 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_send_job_details: Job details\n"));
1252 PDBG (bjnp_hexdump (LOG_DEBUG2, cmd_buf,
1261 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_send_job_details: Job details response:\n"));
1262 PDBG (bjnp_hexdump (LOG_DEBUG2, resp_buf, resp_len));
1289 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_get_scanner_mac_address: Discover response:\n"));
1290 PDBG (bjnp_hexdump (LOG_DEBUG2, resp_buf, resp_len));
1310 PDBG (bjnp_dbg
1319 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_write: sending 0x%lx = %ld bytes\n",
1321 PDBG (bjnp_hexdump (LOG_DEBUG2, (char *) &bjnp_buf,
1331 PDBG (bjnp_dbg (LOG_CRIT, "bjnp_write: ERROR - Could not send data!\n"));
1358 PDBG (bjnp_dbg
1368 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_send_read_req sending command\n"));
1369 PDBG (bjnp_hexdump (LOG_DEBUG2, (char *) &bjnp_buf,
1378 PDBG (bjnp_dbg
1406 PDBG (bjnp_dbg
1427 PDBG (bjnp_dbg (LOG_CRIT,
1436 PDBG (bjnp_dbg (LOG_CRIT,
1453 PDBG (bjnp_dbg (LOG_CRIT,
1456 PDBG (bjnp_dbg (LOG_CRIT,
1459 PDBG (bjnp_dbg
1469 PDBG (bjnp_dbg
1478 PDBG (bjnp_dbg
1489 PDBG (bjnp_dbg
1492 PDBG (bjnp_hexdump
1531 PDBG (bjnp_dbg
1569 PDBG (bjnp_dbg
1577 PDBG (bjnp_dbg
1584 PDBG (bjnp_dbg
1606 PDBG (bjnp_dbg (LOG_CRIT,
1616 PDBG (bjnp_dbg (LOG_CRIT,
1627 PDBG (bjnp_dbg (LOG_CRIT,
1634 PDBG (bjnp_dbg (LOG_DEBUG2, "bjnp_recv_data: Received TCP response payload (%ld bytes):\n",
1636 PDBG (bjnp_hexdump (LOG_DEBUG2, buffer, recv_bytes));
1656 PDBG (bjnp_dbg( LOG_DEBUG, "bjnp_open_tcp: socket alreeady opened, nothing to do\n"));
1660 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_open_tcp: Setting up a TCP socket, dest: %s port %d\n",
1670 PDBG (bjnp_dbg (LOG_CRIT, "bjnp_open_tcp: ERROR - Can not create socket: %s\n",
1705 PDBG( bjnp_dbg(LOG_INFO, "bjnp_open_tcp: created socket %d\n", sock));
1708 PDBG (bjnp_dbg( LOG_INFO, "bjnp_open_tcp: INFO - Can not yet connect over TCP to scanner: %s, retrying\n",
1713 PDBG (bjnp_dbg
1722 PDBG( bjnp_dbg( LOG_INFO, "bjnp_close_tcp - closing tcp-socket %d\n", device[devno].tcp_socket));
1729 PDBG( bjnp_dbg( LOG_INFO, "bjnp_close_tcp: socket not open, nothing to do.\n"));
1749 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_allocate_device(%s) %d\n", devname, bjnp_no_devices));
1764 PDBG (bjnp_dbg
1774 PDBG (bjnp_dbg
1801 PDBG (bjnp_dbg (LOG_CRIT, "bjnp_allocate_device: ERROR - Cannot resolve host: %s port %s\n", host, port));
1814 PDBG (bjnp_dbg
1861 PDBG (bjnp_dbg(LOG_NOTICE, "bjnp_allocate_device: Cannot access scanner, skipping!"));
1865 PDBG (bjnp_dbg (LOG_INFO, "bjnp_allocate_device: Scanner not yet in our list, added it: %s:%s\n", host, port));
1902 PDBG (bjnp_dbg (LOG_CRIT, "add_scanner: ERROR - Cannot read scanner make & model: %s\n",
1912 PDBG (bjnp_dbg (LOG_CRIT, "add_scanner: Scanner %s is not supported, model is unknown! Please report upstream\n", makemodel));
1925 PDBG (bjnp_dbg (LOG_NOTICE, "add_scanner: New scanner added: %s, serial %s, mac address: %s.\n",
1929 PDBG (bjnp_dbg (LOG_CRIT, "add_scanner: unexpected error (out of memory?), adding %s\n", makemodel));
1935 PDBG (bjnp_dbg (LOG_NOTICE, "add_scanner: Scanner at %s was added before, good!\n",
1940 PDBG (bjnp_dbg (LOG_NOTICE, "add_scanner: Scanner at %s can not be added\n",
1967 PDBG (bjnp_dbg (LOG_NOTICE, "uri: %s: Method %s cannot be recognized\n", uri, method));
2043 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_find_devices, pixma backend version: %d.%d.%d\n",
2060 PDBG (bjnp_dbg( LOG_DEBUG, "sanei_bjnp_find_devices: Networked scanner detection is disabled in configuration file.\n" ) );
2070 PDBG ( bjnp_dbg (LOG_DEBUG, "Set new default timeout value: %d ms.", timeout_default));
2076 PDBG ( bjnp_dbg (LOG_DEBUG, "sanei_bjnp_find_devices: auto detection of scanners disabled"));
2081 PDBG (bjnp_dbg (LOG_DEBUG, "sanei_bjnp_find_devices: Adding scanner from pixma.conf: %s\n", conf_devices[i]));
2087 PDBG (bjnp_dbg (LOG_DEBUG, "sanei_bjnp_find_devices: Added all specified scanners.\n"));
2091 PDBG (bjnp_dbg( LOG_DEBUG, "sanei_bjnp_find_devices: Configuration file is empty, No devices specified.\n" ) );
2102 PDBG (bjnp_dbg( LOG_DEBUG, "sanei_bjnp_find_devices: Start auto-detection.\n" ) );
2213 PDBG (bjnp_dbg (LOG_DEBUG, "sanei_bjnp_find_devices: Select returned, time left %d.%d....\n",
2224 PDBG (bjnp_dbg
2230 PDBG (bjnp_dbg (LOG_DEBUG2, "sanei_find_devices: Discover response:\n"));
2231 PDBG (bjnp_hexdump (LOG_DEBUG2, &resp_buf, numbytes));
2243 PDBG (bjnp_dbg (LOG_INFO,
2272 PDBG (bjnp_dbg (LOG_DEBUG, "sanei_find_devices: scanner discovery finished...\n"));
2307 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_open(%s, %d):\n", devname, *dn));
2316 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_opening TCP connection failed.\n\n"));
2319 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_open done.\n\n"));
2331 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_close(%d):\n", dn));
2334 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_close done.\n\n"));
2345 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_activate (%d)\n", dn));
2348 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_activate: open TCP connection failed.\n\n"));
2351 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_activate done.\n\n"));
2363 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_deactivate (%d)\n", dn));
2368 PDBG (bjnp_dbg (LOG_INFO, "sanei_bjnp_deactivate done.\n\n"));
2379 PDBG (bjnp_dbg (LOG_INFO, "bjnp_set_timeout to %d\n",
2412 PDBG (bjnp_dbg
2419 PDBG (bjnp_dbg
2426 PDBG (bjnp_dbg
2438 PDBG (bjnp_dbg (LOG_DEBUG,
2466 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_read_bulk: In flight: 0x%lx = %ld bytes available\n",
2475 PDBG (bjnp_dbg
2489 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_read_bulk: Expected at most %ld bytes, received this time: %ld\n",
2496 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_read_bulk: %s: Returning %ld bytes, backend expects %ld\n",
2534 PDBG (bjnp_dbg
2542 PDBG (bjnp_dbg (LOG_CRIT, "sanei_bjnp_write_bulk: ERROR - Could not read response to command!\n"));
2548 PDBG (bjnp_dbg (LOG_CRIT,
2558 PDBG (bjnp_dbg (LOG_CRIT,
2565 PDBG (bjnp_dbg
2598 PDBG (bjnp_dbg
2612 PDBG (bjnp_dbg
2631 PDBG (bjnp_dbg (LOG_NOTICE, "bjnp_read_int: WARNING - Failed to setup read_intr dialog with device!\n"));
2652 PDBG (bjnp_dbg (LOG_NOTICE, "bjnp_read_int: Poll failed, Restarting polling dialog!\n"));
2672 PDBG (bjnp_dbg (LOG_NOTICE, "bjnp_read_int: Restarting polling dialog!\n"));