Lines Matching refs:DBG
64 static void DBG(int level, const char *format, ...)
73 /* Fix problem with DBG macro definition having a - in the name */
146 DBG(40, "Scanner not ready (0x%x). Attempting to "
153 DBG(0, "WARNING: Don't know how to reset an FBx20P, you may "
200 DBG(10, "Had to reset scanner, waiting for the "
215 DBG(10,"Sending: ");
218 DBG(10,"%02x ", data[count]);
220 DBG(10,"\n ");
222 if (count % 20 != 19) DBG(10,"\n");
225 DBG(100, "NEW Send Command (length %i):\n", length);
244 DBG(0, "Invalid mode in write!\n");
247 DBG(100, "<< write");
256 DBG(200, "NEW read_data (%i bytes):\n", length);
268 DBG(10,"Error 1\n");
276 DBG(1,"Error 2\n");
282 DBG(1,"Error 3\n");
291 DBG(1,"No data to read.\n");
299 DBG(100, "-> ieee_transfer(%d) *\n", length);
301 DBG(100, "<- (%d)\n", count);
315 DBG(10, "Couldn't read enough data (need %d more "
321 DBG(100, "-> ieee_transfer(%d)\n", length);
323 DBG(100, "<- (%d)\n", count);
332 DBG(10,"Read: ");
335 DBG(10,"%02x ", data[count]);
337 DBG(10,"\n ");
340 if (count % 20 != 19) DBG(10,"\n");
344 DBG(10,"Read: %i bytes\n", length);
359 DBG(100, "IEEE transfer (%i bytes)\n", length);
375 DBG(1, "Internal error: Wrong mode for transfer.\n"
388 DBG(200, "* Check Status:\n");
398 DBG(200, "Ready - 0x0606\n");
402 DBG(200, "Busy - 0x1414\n");
406 DBG(200, "Resetting - 0x0805\n");
410 DBG(1, "!! Invalid Command - 0x1515\n");
414 DBG(200, "Nothing - 0x0000");
419 DBG(1, "!! Unknown status - %04x\n", status);
562 if (msg) DBG(10, "Timeout: %s (0x%02x in 0x%02x) - Status "
598 DBG(10, "scanner_init: Giving the scanner a snooze...\n");