Lines Matching refs:debug

306 		debug(5,
313 debug(5,
323 debug(5,
354 debug(5, "Read capacity : %d - %d errno = %d\n",
360 debug(5, "sector size = 0x%x(%d)\n",
435 debug(5, "Initialising server\n");
439 debug(1, "init_server did not do the job. "
448 debug(5, "smserverproc thread %d running....\n", pthread_self());
532 debug(5, "INQUIRY failed: rv = %d uscsi_status = "
539 debug(5, "dev_type %d\n", dev_type);
553 debug(5, "get_media_capacity:\n");
574 debug(5, "Retrieving media info failed: %d - %d\n", ret_val,
579 (void) debug(1, "Invalid command for media\n");
587 (void) debug(5, "no media in drive\n");
598 debug(1, "capacity is %x %x %x %x = %x", data[4], data[5], data[6],
644 debug(5, "inquiry failed: %d - %d errno = %d\n",
661 debug(5, "Read capacity : %d - %d errno = %d\n",
697 debug(1,
711 debug(1,
723 debug(1, "Format option %d not supported!!\n",
731 debug(5, "immediate_flag set\n");
735 debug(5, "cdb: %x ", cdb[0]);
736 debug(5, "%x %x ", cdb[1], cdb[2]);
737 debug(5, "%x %x %x\n", cdb[3], cdb[4], cdb[5]);
738 debug(5, "data: %x %x %x %x\n", data[0], data[1], data[2], data[3]);
748 debug(5, "Format failed : %d - uscsi_status = %d errno = %d\n",
773 debug(5, "scsi_ls120_format:\n");
797 debug(5, "cdb: %x %x %x ... %x", cdb[0], cdb[1], cdb[2], cdb[8]);
798 debug(5, "data: %x %x %x %x\n", data[0], data[1], data[2], data[3]);
799 debug(5, " : %x %x %x %x\n", data[4], data[5], data[6], data[7]);
800 debug(5, " : %x %x %x %x\n", data[8], data[9], data[10], data[11]);
804 debug(1, "Format not supported\n");
812 debug(1, "Format option not specified!!\n");
830 debug(1, "Format failed failed: %d - %d\n", ret_val,
836 debug(1, "Invalid command for media\n");
841 debug(1, "Incompatible media.\n");
891 debug(5, "inquiry failed: %d - %d errno = %d\n",
908 debug(5, "Read capacity : %d - %d errno = %d\n",
931 debug(5,
938 debug(1,
950 debug(1, "Format option %d not supported!!\n",
966 debug(5, "Format failed failed: %d - %d errno = %d\n",
984 debug(10, "SCSI MEDIA STATUS CALLED \n");
1002 debug(5, "Modesense for 0x3f pages failed: %d-%d errno=%d\n",
1009 debug(5, "Modesense failed: %d - %d errno = %d\n",
1020 debug(5, "cur status %d\n", cur_status);
1035 debug(10, "Getting media status\n");
1052 debug(5, "Cartridge protect operation failed: "
1059 debug(1, "Disk not present. \n");
1064 debug(5, "MODE 0x%x / %d.\n", mode, mode);
1087 debug(5, "status %d \n", status);
1100 debug(5, "SCSI REASSIGN CALLED block = %lld\n", block);
1121 debug(5, "Reassign block failed: %d - %d errno = %d\n",
1138 debug(10, "MODE SENSE(6) - page_code = 0x%x\n", page_code);
1156 debug(5, "Modesense failed: %d - %d errno = %d\n",
1176 debug(10, "SCSI ZIP WRITE PROTECT CALLED \n");
1198 debug(5, "inquiry failed: %d - %d errno = %d\n",
1205 debug(5, "SCSI device\n");
1208 debug(5, "ATAPI device\n");
1228 debug(1, "Invalid mode 0x%x specified\n",
1250 debug(5, "Odd len passwd for ATAPI device!\n");
1274 debug(5, "Cartridge-protect operation failed: rv "
1280 debug(5, "Protection Request with wrong "
1346 debug(5, "sm_server_thread[%d]: door_create() failed",
1373 debug(5, "thr[%d] bound to Client Door[%d]", pthread_self(),
1417 debug(1, "cleanup[%d]: door_revoke() Death Door[%d]",
1431 debug(1, "cleanup[%d]: release shared memory", pthread_self());
1442 debug(1, "cleanup[%d]: close(%d) target device", pthread_self(),
1454 debug(1, "cleanup[%d]: door_unbind() of Client Door[%d]",
1462 debug(1, "cleanup[%d]: door_revoke() Client Door[%d]",
1473 debug(5, "cleanup[%d] ...exiting\n", pthread_self());
1519 debug(10, "sm_door_server_create[%d]: entering...\n", pthread_self());
1526 debug(8, "sm_door_server_create[%d]: Exiting without creating "
1554 debug(5, "Exiting sm_door_server_create[%d] after creating thr[%d].\n",
1620 debug(5, "read failed: %d - %d errno = %d\n",
1622 debug(5, "buflen = 0x%x resid = 0x%x sector size = %d\n",
1624 debug(5, "cdb addr: %x %x %x %x \n", cdb.g1_addr3,
1626 debug(5, "cdb count: %x %x\n", cdb.g1_count1,
1681 debug(5, "write failed: %d - %d errno = %d\n",
1683 debug(5, "buflen = 0x%x resid = 0x%x sector size = %d\n",
1685 debug(5, "cdb addr: %x %x %x %x \n", cdb.g1_addr3,
1687 debug(5, "cdb count: %x %x\n", cdb.g1_count1,
1812 debug(5, "mmap failed. errno=%d\n", errno);
1834 debug(5, "Mode sense failed\n");
1848 debug(5, "AWRE bit not set\n");
1859 debug(5, "REASSIGN BLOCK: sec size = 0x%x\n", sector_size);
1872 debug(5, "Reading the block %d\n",
1891 debug(5, "Writing the block %d\n",
1908 debug(5, "Reassign failed: %d - %d errno = %d\n",
1943 debug(1, "death_servproc[%d]: argp = 0x%p "
1984 debug(10, "client_servproc[%d]...\n", pthread_self());
1987 debug(5, "client_servproc[%d]: req = DOOR_UNREF_DATA\n",
1989 debug(5, "Client has exited. Cleaning up resources\n");
2004 debug(5, "client_servproc[%d]: req = %s\n", pthread_self(),
2018 debug(5, "client_servproc: unknown command %d\n", req->in.cnum);
2045 debug(10, " arg size = %d blk num=0x%x nbytes = 0x%x \n",
2076 debug(5, "USCSI CMD 0x%x requested.\n",
2090 debug(5, "uscsi_cmd failed: uscsi_buflen=0x%x "
2107 debug(5, "uscsi_cmd failed: %d - %d errno = %d\n",
2145 debug(5, "inquiry failed: %d - %d errno = %d\n",
2150 debug(5, "%s\n", inq.inq_vid);
2151 debug(5, "%s\n", rmsvc.retget_device_info.sm_vendor_name);
2169 debug(5, "Vendor name = %s\n",
2171 debug(5, "product name = %s\n",
2173 debug(5, "Firmware revision = %s\n",
2196 debug(5, "DKIOCGMEDIAINFO failed; using "
2205 debug(5, "SCMD_READ_FORMAT_CAP failed");
2245 debug(5, "Cannot determine "
2251 debug(5, "DKIOCGGEOM ioctl failed");
2260 debug(5, "DKIOCG_PHYGEOM "
2288 debug(1, "properties are: lbasize = %d, cap = %llu",
2374 debug(5, "Request sense failed: %d - %d errno = %d\n",
2381 debug(5, "format failed!\n");
2409 debug(10, "Exiting client server...\n");
2433 debug(10, "Entering main_servproc[%d].\n", pthread_self());
2444 debug(5, "argp is NULL\n");
2456 debug(5, "req = %s arg_size = 0x%x \n",
2470 debug(5, "main_servproc: unknown command 0x%x\n",
2489 debug(5, "ndesc = %d\n", ndesc);
2494 debug(5, "Checking file descriptor of target device\n");
2502 debug(5, "descriptor = %d st_mode = 0x%lx\n",
2540 debug(5, "ddata = 0x%p \n", (void *)ddata);
2544 debug(5, "door_server_create called.\n");
2581 debug(5, "main_servproc[%d]: Client Door = %d, "
2606 debug(5, "retok.cnum = 0x%x\n", retok.cnum);
2615 debug(10, "exiting main_servproc. \n");
2663 debug(10, "init_server running\n");
2714 debug(1, "main door_create");
2721 debug(5, "could not open %s.\n", smedia_service);
2727 debug(1, "main fattach");
2764 debug(10, "init_server completed successfully\n");
2862 debug(5,
2882 debug(5,
2901 warning(gettext("usage: %s [-L loglevel] level of debug information\n"),
2948 debug(1, gettext("server started by port monitor.\n"));
2999 debug(1, gettext("server started manually.\n"));
3026 debug(5, "Invalid mode\n");
3044 debug(5, "get_floppy_geom: capacity = 0x%x\n", capacity);
3078 debug(5, "unknown capacity type %d\n", capacity);
3082 debug(5, "get_floppy_geom: setting cyl = %d, nsect = %d, head = %d",
3100 debug(5, "scsi_floppy_format:\n");
3110 debug(1, "Format not supported\n");
3119 debug(1, "Format option not specified!!\n");
3173 debug(5, "cdb: %x %x %x ... %x", cdb[0], cdb[1], cdb[2], cdb[8]);
3174 debug(5, "data: %x %x %x %x\n", data[0], data[1], data[2], data[3]);
3175 debug(5, " : %x %x %x %x\n", data[4], data[5], data[6], data[7]);
3176 debug(5, " : %x %x %x %x\n", data[8], data[9], data[10], data[11]);
3187 debug(5, "Retrieving media info failed: %d - %d\n",
3191 debug(5, "Invalid command for media\n");
3197 debug(5, "Incompatible media.\n");
3208 debug(5, "Retrieving media info failed: %d - %d\n",
3218 debug(5, "Incompatible media.\n");
3226 debug(5, "formatting done!");
3242 debug(5, "SCSI MEDIA STATUS CALLED \n");
3273 debug(1, "Modesense failed: %d - %d\n",
3278 debug(5, "Modesense succeeded: 0x%x\n", modeh.device_specific);