Lines Matching refs:ME
54 #define ME "scsimain: " macro
672 snprintf(ebuff, EBUFF_SZ, ME "Error closing %s ", in run_sg_scan_tests()
674 perror(ME "close error"); in run_sg_scan_tests()
695 ME "Error opening %s ", fname); in run_sg_scan_tests()
704 ME "device %s failed on scsi ioctl, skip", in run_sg_scan_tests()
712 snprintf(ebuff, EBUFF_SZ, ME "device %s failed on scsi " in run_sg_scan_tests()
722 ME "device %s failed on sg ioctl(3), skip", in run_sg_scan_tests()
746 ME "device %s ioctls(4), skip", fname); in run_sg_scan_tests()
784 snprintf(ebuff, EBUFF_SZ, ME "device %s writing, skip", in run_sg_scan_tests()
792 snprintf(ebuff, EBUFF_SZ, ME "device %s reading, skip", in run_sg_scan_tests()
848 perror(ME "Inquiry SG_IO ioctl error"); in sg3_inq()
894 printf(ME "mx_resp_len too big\n"); in do_logs()
927 snprintf(ebuff, EBUFF_SZ, ME "ppc=%d, sp=%d, " in do_logs()
1497 snprintf(ebuff, EBUFF_SZ, ME "error opening file: %s", in show_scsi_logs()
1504 printf(ME "%s doesn't seem to be a version 3 sg device\n", in show_scsi_logs()
1956 ME "for 6 byte commands, maximum number of " in sg_build_scsi_cdb()
1962 ME "for 6 byte commands, can't address blocks" in sg_build_scsi_cdb()
1968 ME "for 6 byte commands, neither dpo nor fua" in sg_build_scsi_cdb()
1985 ME "for 10 byte commands, maximum number of " in sg_build_scsi_cdb()
2019 ME "expected cdb size of 6, 10, 12, or 16 but got" in sg_build_scsi_cdb()
2037 ME "bad rd cdb build, from_block=%d, blocks=%d\n", in sg_read()
2103 fprintf(stderr, ME "bad wr cdb build, to_block=%d, blocks=%d\n", in sg_write()
2247 fprintf(stderr, ME "if=%s skip=%d of=%s seek=%d count=%d\n", in do_scsi_device_read_write()
2265 ME "unable to use scsi tape device %s\n", inf); in do_scsi_device_read_write()
2270 ME "could not open %s for sg reading", in do_scsi_device_read_write()
2278 perror(ME "SG_SET_RESERVED_SIZE error"); in do_scsi_device_read_write()
2283 ME in do_scsi_device_read_write()
2288 ME in do_scsi_device_read_write()
2299 ME "could not open %s for reading", in do_scsi_device_read_write()
2309 ME in do_scsi_device_read_write()
2327 ME "unable to use scsi tape device %s\n", outf); in do_scsi_device_read_write()
2332 ME "could not open %s for sg writing", in do_scsi_device_read_write()
2340 perror(ME "SG_SET_RESERVED_SIZE error"); in do_scsi_device_read_write()
2344 ME "sg driver prior to 3.x.y\n"); in do_scsi_device_read_write()
2359 ME in do_scsi_device_read_write()
2368 ME in do_scsi_device_read_write()
2381 ME in do_scsi_device_read_write()
2528 ME "reading, skip=%d ", skip); in do_scsi_device_read_write()
2585 ME "writing, seek=%d ", seek); in do_scsi_device_read_write()
3421 printf(ME "mx_resp_len too big\n"); in do_modes()
3691 snprintf(ebuff, EBUFF_SZ, ME "error opening file: %s", in show_scsi_modes()
3698 printf(ME "%s doesn't seem to be a version 3 sg device\n", in show_scsi_modes()
3707 printf(ME "%s doesn't respond to a SCSI INQUIRY\n", in show_scsi_modes()
3863 perror(ME "open error"); in do_scsi_read_buffer()
3869 printf(ME "not a sg device, or driver prior to 3.x\n"); in do_scsi_read_buffer()
3877 printf(ME "out of memory (query)\n"); in do_scsi_read_buffer()
3899 perror(ME "SG_IO READ BUFFER descriptor error"); in do_scsi_read_buffer()
3945 perror(ME "SG_SET_RESERVED_SIZE error"); in do_scsi_read_buffer()
3952 printf(ME "mmap() out of memory, try a smaller " in do_scsi_read_buffer()
3956 perror(ME "error using mmap()"); in do_scsi_read_buffer()
3962 printf(ME "out of memory (data)\n"); in do_scsi_read_buffer()
4012 printf(ME in do_scsi_read_buffer()
4017 perror(ME "SG_IO READ BUFFER data error"); in do_scsi_read_buffer()
4085 perror(ME "close error"); in do_scsi_read_buffer()
4163 ME "lba can only be non-zero when pmi is set\n"); in show_scsi_read_capacity()
4168 snprintf(ebuff, EBUFF_SZ, ME "error opening file: %s", in show_scsi_read_capacity()
4175 printf(ME "%s doesn't seem to be a version 3 sg device\n", in show_scsi_read_capacity()
4383 printf(ME "mx_resp_len too big\n"); in do_modes_0a()
4443 snprintf(ebuff, EBUFF_SZ, ME "error opening file: %s", in do_scsi_send_diagnostics()
4450 printf(ME "%s doesn't seem to be a version 3 sg device\n", in do_scsi_send_diagnostics()
6151 ME "bad rd cdb build, from_block=%d, blocks=%d\n", in sg_read2()
6217 fprintf(stderr, ME "bad wr cdb build, to_block=%d, blocks=%d\n", in sg_write2()
6322 fprintf(stderr, ME "unable to use scsi tape device %s\n", inf); in do_scsi_sgm_read_write()
6327 ME "could not open %s for sg reading", inf); in do_scsi_sgm_read_write()
6333 fprintf(stderr, ME "sg driver prior to 3.1.22\n"); in do_scsi_sgm_read_write()
6340 perror(ME "SG_GET_RESERVED_SIZE error"); in do_scsi_sgm_read_write()
6345 perror(ME "SG_SET_RESERVED_SIZE error"); in do_scsi_sgm_read_write()
6353 ME "error using mmap() on file: %s", inf); in do_scsi_sgm_read_write()
6360 ME "could not open %s for reading", inf); in do_scsi_sgm_read_write()
6368 snprintf(ebuff, EBUFF_SZ, ME "couldn't skip to " in do_scsi_sgm_read_write()
6381 ME "unable to use scsi tape device %s\n", outf); in do_scsi_sgm_read_write()
6386 ME "could not open %s for " in do_scsi_sgm_read_write()
6394 ME "sg driver prior to 3.1.22\n"); in do_scsi_sgm_read_write()
6398 perror(ME "SG_GET_RESERVED_SIZE error"); in do_scsi_sgm_read_write()
6406 perror(ME "SG_SET_RESERVED_SIZE error"); in do_scsi_sgm_read_write()
6417 ME in do_scsi_sgm_read_write()
6432 ME in do_scsi_sgm_read_write()
6441 ME "could not open %s " in do_scsi_sgm_read_write()
6453 ME "couldn't seek to " in do_scsi_sgm_read_write()
6621 ME "reading, skip=%d ", skip); in do_scsi_sgm_read_write()
6666 ME "writing, seek=%d ", seek); in do_scsi_sgm_read_write()
6771 fprintf(stderr, ME "interrupted by SIGINT\n"); in sig_listen_thread()
7015 fprintf(stderr, ME "inputting to sg failed, blk=%d\n", in sg_in_operation()
7084 ME "outputting from sg failed, blk=%d\n", in sg_out_operation()
7148 fprintf(stderr, ME "bad cdb build, start_blk=%d, blocks=%d\n", in sg_start_io()
7262 fprintf(stderr, ME "sg driver prior to 3.x.y\n"); in sg_prepare()
7269 perror(ME "SG_SET_RESERVED_SIZE error"); in sg_prepare()
7273 perror(ME "SG_SET_FORCE_PACK_ID error"); in sg_prepare()
7279 perror(ME "SG_SET_SCSI_ID error"); in sg_prepare()
7324 fprintf(stderr, ME "if=%s skip=%d of=%s seek=%d count=%d\n", in do_scsi_sgp_read_write()
7334 ME "unable to use scsi tape device %s\n", inf); in do_scsi_sgp_read_write()
7339 ME "could not open %s for sg reading", in do_scsi_sgp_read_write()
7350 ME "could not open %s for reading", in do_scsi_sgp_read_write()
7361 ME in do_scsi_sgp_read_write()
7375 ME "unable to use scsi tape device %s\n", outf); in do_scsi_sgp_read_write()
7380 ME "could not open %s for sg writing", in do_scsi_sgp_read_write()
7397 ME in do_scsi_sgp_read_write()
7406 ME in do_scsi_sgp_read_write()
7420 ME in do_scsi_sgp_read_write()