Home
last modified time | relevance | path

Searched refs:pr2serr (Results 1 – 25 of 87) sorted by relevance

1234

/external/sg3_utils/src/
Dsg_xcopy.c227 pr2serr(" remaining block count=%" PRId64 "\n", dd_count); in print_stats()
228 pr2serr("%s%" PRId64 "+%d records in\n", str, in_full - in_partial, in print_stats()
230 pr2serr("%s%" PRId64 "+%d records out\n", str, out_full - out_partial, in print_stats()
243 pr2serr("Interrupted by signal,"); in interrupt_handler()
254 pr2serr("Progress report, continuing ...\n"); in siginfo_handler()
275 pr2serr("fopen %s failed: %s\n", proc_devices, strerror(errno)); in find_bsg_major()
294 pr2serr("found bsg_major=%d\n", bsg_major); in find_bsg_major()
296 pr2serr("found no bsg char device in %s\n", proc_devices); in find_bsg_major()
346 pr2serr("INQUIRY failed on %s\n", ebuff); in open_sg()
349 pr2serr("sg_cmds_close_device() failed as well\n"); in open_sg()
[all …]
Dsg_sat_set_features.c76 pr2serr("Usage: sg_sat_set_features [--count=CO] [--ck_cond] [--extended] " in usage()
190 pr2serr("command completed with SCSI GOOD status\n"); in do_set_features()
193 pr2serr("ATA pass through:\n"); in do_set_features()
203 pr2serr("ATA PASS-THROUGH (%d) not supported\n", in do_set_features()
208 pr2serr("ATA PASS-THROUGH (%d), bad field in cdb\n", in do_set_features()
218 pr2serr("did not find ATA Return (sense) " in do_set_features()
233 pr2serr("ATA PASS-THROUGH (%d), Unit Attention detected\n", in do_set_features()
238 pr2serr("ATA PASS-THROUGH (%d), device not ready\n", in do_set_features()
244 pr2serr("ATA PASS-THROUGH (%d), medium or hardware " in do_set_features()
249 pr2serr("Aborted command: protection information\n"); in do_set_features()
[all …]
Dsg_verify.c74 pr2serr("Usage: sg_verify [--0] [--16] [--bpc=BPC] [--count=COUNT] " in usage()
183 pr2serr("bad argument to '--bpc'\n"); in main()
191 pr2serr("bad argument to '--count'\n"); in main()
201 pr2serr("bad argument to '--ebytchk'\n"); in main()
211 pr2serr("bad argument to '--group'\n"); in main()
225 pr2serr("bad argument to '--lba'\n"); in main()
234 pr2serr("bad argument to '--ndo'\n"); in main()
241 pr2serr("bad argument to '--vrprotect'\n"); in main()
245 pr2serr("'--vrprotect' requires a value from 0 to 7 " in main()
267 pr2serr("unrecognised option code 0x%x ??\n", c); in main()
[all …]
Dsg_write_buffer.c79 pr2serr("Usage: " in usage()
180 pr2serr("The modes parameter argument can be numeric (hex or decimal)\n" in print_modes()
183 pr2serr(" %2d (0x%02x) %-18s%s\n", mp->mode, mp->mode, in print_modes()
186 pr2serr("\nAdditionally '--bpw=<val>,act' does a activate deferred " in print_modes()
235 pr2serr("argument to '--bpw' should be in a positive " in main()
254 pr2serr("argument to '--id' should be in the range 0 to " in main()
265 pr2serr("bad argument to '--length'\n"); in main()
274 pr2serr("argument to '--mode' should be in the range 0 " in main()
295 pr2serr("bad argument to '--offset'\n"); in main()
305 pr2serr("bad argument to '--skip'\n"); in main()
[all …]
Dsg_unmap.c73 pr2serr("Usage: " in usage()
115 pr2serr("WARNING: This utility will destroy data on DEVICE in the given " in usage()
142 pr2serr("'--lba' cannot be read from stdin\n"); in build_lba_arr()
147 pr2serr("build_lba_arr: error at pos %d\n", k + 1); in build_lba_arr()
164 pr2serr("build_lba_arr: error at pos %d\n", in build_lba_arr()
171 pr2serr("build_lba_arr: array length exceeded\n"); in build_lba_arr()
200 pr2serr("'--len' cannot be read from stdin\n"); in build_num_arr()
205 pr2serr("build_num_arr: error at pos %d\n", k + 1); in build_num_arr()
212 pr2serr("build_num_arr: number exceeds 32 bits at pos " in build_num_arr()
227 pr2serr("build_num_arr: error at pos %d\n", in build_num_arr()
[all …]
Dsg_sat_identify.c79 pr2serr("Usage: sg_sat_identify [--ck_cond] [--extend] [--help] [--hex] " in usage()
219 pr2serr("%s: bad cdb_len=%d\n", __func__, cdb_len); in do_identify_dev()
225 pr2serr("command completed with SCSI GOOD status\n"); in do_identify_dev()
228 pr2serr("ATA pass-through:\n"); in do_identify_dev()
238 pr2serr("ATA PASS-THROUGH (%d) not supported\n", in do_identify_dev()
243 pr2serr("ATA PASS-THROUGH (%d), bad field in cdb\n", in do_identify_dev()
254 pr2serr("did not find ATA Return (sense) " in do_identify_dev()
265 pr2serr("ATA PASS-THROUGH (%d), unexpected " in do_identify_dev()
279 pr2serr("ATA PASS-THROUGH (%d), Unit Attention detected\n", in do_identify_dev()
284 pr2serr("ATA PASS-THROUGH (%d), device not ready\n", in do_identify_dev()
[all …]
Dsg_read.c123 pr2serr(" remaining block count=%" PRId64 "\n", dd_count); in print_stats()
124 pr2serr("%" PRId64 "+%d records in", in_full - in_partial, in print_stats()
127 pr2serr(", %s commands issued: %d\n", (str ? str : ""), iters); in print_stats()
129 pr2serr("\n"); in print_stats()
131 pr2serr("%s commands issued: %d\n", (str ? str : ""), iters); in print_stats()
143 pr2serr("Interrupted by signal,"); in interrupt_handler()
152 pr2serr("Progress report, continuing ...\n"); in siginfo_handler()
176 pr2serr("Usage: sg_read [blk_sgio=0|1] [bpt=BPT] [bs=BS] " in usage()
201 pr2serr(" dpo 1-> set disable page out (DPO) in SCSI READs\n" in usage()
243 pr2serr(ME "for 6 byte commands, maximum number of blocks is " in sg_build_scsi_cdb()
[all …]
Dsg_sat_read_gplog.c91 pr2serr("Usage: " in usage()
162 pr2serr("Building ATA READ LOG%s EXT command; la=0x%x, pn=0x%x\n", in do_read_gplog()
212 pr2serr("command completed with SCSI GOOD status\n"); in do_read_gplog()
225 pr2serr("ATA pass through:\n"); in do_read_gplog()
235 pr2serr("%s not supported\n", cmd_name); in do_read_gplog()
239 pr2serr("%s, bad field in cdb\n", cmd_name); in do_read_gplog()
248 pr2serr("did not find ATA Return (sense) " in do_read_gplog()
263 pr2serr("%s, Unit Attention detected\n", cmd_name); in do_read_gplog()
267 pr2serr("%s, device not ready\n", cmd_name); in do_read_gplog()
272 pr2serr("%s, medium or hardware error\n", cmd_name); in do_read_gplog()
[all …]
Dsg_write_verify.c83 pr2serr("Usage: sg_write_verify [--16] [--bytchk=BC] [--dpo] [--group=GN] " in usage()
139 pr2serr(" %s cdb: %s\n", b, in run_scsi_transaction()
142 pr2serr(" Data out buffer [%d bytes]:\n", do_len); in run_scsi_transaction()
148 pr2serr("%s: out of memory\n", b); in run_scsi_transaction()
176 pr2serr("Medium or hardware error starting at lba=%" in run_scsi_transaction()
265 pr2serr(ME "open error: %s: %s\n", fn, safe_strerror(err)); in open_if()
325 pr2serr("argument to '--bytchk' expected to be 0 to 3\n"); in main()
335 pr2serr("argument to '--group' expected to be 0 to 63\n"); in main()
350 pr2serr("bad argument to '--ilen'\n"); in main()
356 pr2serr("must have one and only one '--lba'\n"); in main()
[all …]
Dsg_dd.c235 pr2serr(" remaining block count=%" PRId64 "\n", dd_count); in print_stats()
236 pr2serr("%s%" PRId64 "+%d records in\n", str, in_full - in_partial, in print_stats()
238 pr2serr("%s%" PRId64 "+%d records %s\n", str, out_full - out_partial, in print_stats()
241 pr2serr("%s%" PRId64 " bypassed records out\n", str, out_sparse_num); in print_stats()
243 pr2serr("%s%d recovered errors\n", str, recovered_errs); in print_stats()
245 pr2serr("%s%d retries attempted\n", str, num_retries); in print_stats()
247 pr2serr("%s%d unrecovered error(s)\n", str, unrecovered_errs); in print_stats()
249 pr2serr("%s%d read_longs fetched part of unrecovered read " in print_stats()
253 pr2serr("%s%d miscompare error(s)\n", str, miscompare_errs); in print_stats()
266 pr2serr("Interrupted by signal,"); in interrupt_handler()
[all …]
Dsg_wr_mode.c65 pr2serr("Usage: sg_wr_mode [--contents=H,H...] [--dbd] [--force] " in usage()
160 pr2serr("%s: carry_over error ['%s'] around line " in build_mode_page()
180 pr2serr("%s: syntax error at line %d, pos %d\n", __func__, in build_mode_page()
187 pr2serr("%s: hex number larger than 0xff in line %d, " in build_mode_page()
197 pr2serr("%s: array length exceeded\n", __func__); in build_mode_page()
212 pr2serr("%s: error in line %d, at pos %d\n", __func__, in build_mode_page()
223 pr2serr("%s: error at pos %d\n", __func__, k + 1); in build_mode_page()
229 pr2serr("%s: hex number larger than 0xff at pos %d\n", in build_mode_page()
244 pr2serr("%s: error at pos %d\n", __func__, in build_mode_page()
251 pr2serr("%s: array length exceeded\n", __func__); in build_mode_page()
[all …]
Dsg_raw.c109 pr2serr("sg_raw " SG_RAW_VERSION "\n" in pr_version()
121 pr2serr("Usage: sg_raw [OPTION]* DEVICE [CDB0 CDB1 ...]\n" in usage()
198 pr2serr("Invalid argument to --cmdset= expect 0, 1 or 2\n"); in parse_cmd_line()
212 pr2serr("Too many '--infile=' options\n"); in parse_cmd_line()
220 pr2serr("Invalid argument to '--skip'\n"); in parse_cmd_line()
233 pr2serr("Too many '--outfile=' options\n"); in parse_cmd_line()
241 pr2serr("--scan= expects two numbers, comma separated\n"); in parse_cmd_line()
246 pr2serr("Invalid first number to --scan= expect 0 to 255\n"); in parse_cmd_line()
252 pr2serr("Invalid second number to --scan= expect 0 to 255\n"); in parse_cmd_line()
257 pr2serr("Warning: scan range degenerate, ignore\n"); in parse_cmd_line()
[all …]
Dsg_ses_microcode.c167 pr2serr("Usage: " in usage()
228 pr2serr("The modes parameter argument can be numeric (hex or decimal)\n" in print_modes()
231 pr2serr(" %3d [0x%02x] %-18s%s\n", mp->mode, mp->mode, in print_modes()
234 pr2serr("\nAdditionally '--bpw=<val>,act' does a activate deferred " in print_modes()
266 pr2serr("Found %d Download microcode status descriptors, but there " in show_download_mc_sdg()
290 pr2serr(" <<<download status: response too short>>>\n"); in show_download_mc_sdg()
323 pr2serr("%s: unexpected mc_mode=0x%x\n", __func__, op->mc_mode); in send_then_receive()
331 pr2serr("%s: unable to alloc %d bytes\n", __func__, do_len); in send_then_receive()
350 pr2serr("send diag: sub-enc id=%u exp_gen=%u download_mc_code=%u " in send_then_receive()
353 pr2serr(" buff_off=%u image_len=%u this_mc_data_len=%u " in send_then_receive()
[all …]
Dsg_write_x.c211 pr2serr("Usage:\n" in usage()
229 pr2serr("\nOr the corresponding short option usage:\n" in usage()
240 pr2serr("\nUse '-h' or '--help' for more help\n"); in usage()
243 pr2serr(" where:\n" in usage()
280 pr2serr( in usage()
497 pr2serr("Error doing read of %s file: %s\n", fname, in bin_read()
502 pr2serr("Short (%u) read of %s file, wanted %u\n", (unsigned int)res, in bin_read()
552 pr2serr("'--lba' cannot be read from stdin\n"); in build_lba_arr()
557 pr2serr("build_lba_arr: error at pos %d\n", k + 1); in build_lba_arr()
574 pr2serr("build_lba_arr: error at pos %d\n", in build_lba_arr()
[all …]
Dsg_compare_and_write.c123 pr2serr("Usage: sg_compare_and_write [--dpo] [--fua] [--fua_nv] " in usage()
220 pr2serr("argument to '--grpnum=' expected to " in parse_args()
232 pr2serr("bad argument to '--lba'\n"); in parse_args()
241 pr2serr("bad argument to '--num', expect 0 " in parse_args()
252 pr2serr("bad argument to '--timeout'\n"); in parse_args()
266 pr2serr("bad argument to '--wrprotect' not " in parse_args()
274 pr2serr("bad argument to '--xferlen'\n"); in parse_args()
279 pr2serr("unrecognised option code 0x%x ??\n", c); in parse_args()
290 pr2serr("Unexpected extra argument: %s\n", in parse_args()
298 pr2serr("missing device name!\n"); in parse_args()
[all …]
Dsg_ident.c73 pr2serr("unable to write to stdout\n"); in decode_ii()
96 pr2serr("Usage: sg_ident [--ascii] [--clear] [--help] [--itype=IT] " in usage()
159 pr2serr("argument to '--itype' should be in range 0 to 127\n"); in main()
177 pr2serr("unrecognised option code 0x%x ??\n", c); in main()
189 pr2serr("Unexpected extra argument: %s\n", argv[optind]); in main()
196 pr2serr("In DEBUG mode, "); in main()
198 pr2serr("but override: '-vV' given, zero verbose and continue\n"); in main()
203 pr2serr("set '-vv'\n"); in main()
206 pr2serr("keep verbose=%d\n", verbose); in main()
209 pr2serr("Not in DEBUG mode, so '-vV' has no special action\n"); in main()
[all …]
Dsg_write_same.c110 pr2serr("Usage: sg_write_same [--10] [--16] [--32] [--anchor] " in usage()
187 pr2serr("%s since blocks exceed 65535\n", cp); in do_write_same()
189 pr2serr("%s since LBA may exceed 32 bits\n", cp); in do_write_same()
191 pr2serr("%s due to ndob or unmap settings\n", cp); in do_write_same()
252 pr2serr("do_write_same: bad cdb length %d\n", cdb_len); in do_write_same()
259 pr2serr(" Write same(%d) cdb: %s\n", cdb_len, in do_write_same()
261 pr2serr(" Data-out buffer length=%d\n", op->xfer_len); in do_write_same()
264 pr2serr(" Data-out buffer contents:\n"); in do_write_same()
269 pr2serr("Write same(%d): out of memory\n", cdb_len); in do_write_same()
298 pr2serr("Medium or hardware error starting at lba=%" in do_write_same()
[all …]
Dsg_reassign.c70 pr2serr("Usage: sg_reassign [--address=A,A...] [--dummy] [--eight=0|1] " in usage()
154 pr2serr("%s: syntax error at line %d, pos %d\n", __func__, in build_lba_arr()
162 pr2serr("%s: array length exceeded\n", __func__); in build_lba_arr()
177 pr2serr("%s: error in line %d, at pos %d\n", __func__, in build_lba_arr()
188 pr2serr("%s: error at pos %d\n", __func__, k + 1); in build_lba_arr()
205 pr2serr("%s: error at pos %d\n", __func__, in build_lba_arr()
212 pr2serr("%s: array length exceeded\n", __func__); in build_lba_arr()
257 pr2serr("bad argument to '--address'\n"); in main()
270 pr2serr("value for '--eight=' must be 0 or 1\n"); in main()
290 pr2serr("value for '--longlist=' must be 0 or 1\n"); in main()
[all …]
Dsgm_dd.c160 pr2serr(" remaining block count=%" PRId64 "\n", dd_count); in print_stats()
161 pr2serr("%" PRId64 "+%d records in\n", in_full - in_partial, in_partial); in print_stats()
162 pr2serr("%" PRId64 "+%d records out\n", out_full - out_partial, in print_stats()
183 pr2serr("time to transfer data%s: %d.%06d secs", in calc_duration_throughput()
187 pr2serr(" at %.2f MB/sec\n", b / (a * 1000000.0)); in calc_duration_throughput()
189 pr2serr("\n"); in calc_duration_throughput()
202 pr2serr("Interrupted by signal,"); in interrupt_handler()
213 pr2serr("Progress report, continuing ...\n"); in siginfo_handler()
269 pr2serr("Usage: sgm_dd [bs=BS] [count=COUNT] [ibs=BS] [if=IFILE]" in usage()
274 pr2serr(" [bpt=BPT] [cdbsz=6|10|12|16] [dio=0|1] " in usage()
[all …]
Dsg_sat_phy_event.c112 pr2serr("Usage: sg_sat_phy_event [--ck_cond] [--extend] [--help] [--hex] " in usage()
247 pr2serr("command completed with SCSI GOOD status\n"); in do_read_log_ext()
250 pr2serr("ATA pass through:\n"); in do_read_log_ext()
260 pr2serr("ATA PASS-THROUGH (%d) not supported\n", in do_read_log_ext()
265 pr2serr("ATA PASS-THROUGH (%d), bad field in cdb\n", in do_read_log_ext()
275 pr2serr("did not find ATA Return (sense) " in do_read_log_ext()
290 pr2serr("ATA PASS-THROUGH (%d), Unit Attention detected\n", in do_read_log_ext()
295 pr2serr("ATA PASS-THROUGH (%d), device not ready\n", in do_read_log_ext()
301 pr2serr("ATA PASS-THROUGH (%d), medium or hardware " in do_read_log_ext()
306 pr2serr("Aborted command: protection information\n"); in do_read_log_ext()
[all …]
Dsg_reset.c72 static int pr2serr(const char * fmt, ...)
75 static int pr2serr(const char * fmt, ...);
80 pr2serr(const char * fmt, ...) in pr2serr() function
94 pr2serr("Usage: sg_reset [--bus] [--device] [--help] [--host] [--no-esc] " in usage()
102 pr2serr(" --help|-z print usage information then exit\n" in usage()
105 pr2serr(" --help|-h print usage information then exit\n" in usage()
108 pr2serr(" --no-esc|-N overrides default action and only does " in usage()
180 pr2serr(ME "version: %s\n", version_str); in main()
186 pr2serr("unrecognised option code 0x%x ??\n", c); in main()
199 pr2serr("Unexpected extra argument: %s\n", argv[optind]); in main()
[all …]
Dsg_format.c284 pr2serr(" %s cdb: %s\n", fm_s, in sg_ll_format_medium()
291 pr2serr("%s: out of memory\n", __func__); in sg_ll_format_medium()
318 pr2serr("%s command %s without error\n", fm_s, in sg_ll_format_medium()
347 pr2serr(" %s cdb: %s\n", fwp_s, in sg_ll_format_with_preset()
354 pr2serr("%s: out of memory\n", __func__); in sg_ll_format_with_preset()
380 pr2serr("%s command %s without error\n", fwp_s, in sg_ll_format_with_preset()
406 pr2serr("%s: unable to obtain heap for parameter list\n", in scsi_format_unit()
447 pr2serr("Due to --dry-run option bypassing FORMAT UNIT " in scsi_format_unit()
451 pr2serr(" %s would have received parameter " in scsi_format_unit()
455 pr2serr(" %s would not have received a " in scsi_format_unit()
[all …]
Dsg_stream_ctl.c69 pr2serr("Usage: " in usage()
74 pr2serr(" where:\n" in usage()
129 pr2serr(" %s cdb: %s\n", cmd_name, in sg_ll_get_stream_status()
136 pr2serr("%s: out of memory\n", cmd_name); in sg_ll_get_stream_status()
166 pr2serr("%s: parameter data returned:\n", cmd_name); in sg_ll_get_stream_status()
199 pr2serr(" %s cdb: %s\n", cmd_name, in sg_ll_stream_control()
206 pr2serr("%s: out of memory\n", cmd_name); in sg_ll_stream_control()
236 pr2serr("%s: parameter data returned:\n", cmd_name); in sg_ll_stream_control()
289 pr2serr("--ctl= expects a number from 0 to 3\n"); in main()
304 pr2serr("--id= expects a number from 0 to 65535\n"); in main()
[all …]
Dsg_bg_ctl.c61 pr2serr("Usage: " in usage()
65 pr2serr(" where:\n" in usage()
106 pr2serr(" %s cdb: %s\n", cmd_name, in sg_ll_background_control()
113 pr2serr("%s: out of memory\n", cmd_name); in sg_ll_background_control()
166 pr2serr("--ctl= expects a number from 0 to 3\n"); in main()
177 pr2serr("--time= expects a number from 0 to 255\n"); in main()
189 pr2serr("unrecognised option code 0x%x ??\n", c); in main()
201 pr2serr("Unexpected extra argument: %s\n", in main()
208 pr2serr("In DEBUG mode, "); in main()
210 pr2serr("but override: '-vV' given, zero verbose and continue\n"); in main()
[all …]
Dsg_get_lba_status.c81 pr2serr("Usage: sg_get_lba_status [--16] [--32] [--blockhex] " in usage()
117 pr2serr(" --raw|-r output in binary, unless if --inhex=FN " in usage()
278 pr2serr("bad argument to '--element-id'\n"); in main()
299 pr2serr("bad argument to --json= option, unrecognized " in main()
303 pr2serr("%s", e); in main()
310 pr2serr("bad argument to '--lba'\n"); in main()
318 pr2serr("argument to '--maxlen' should be %d or less\n", in main()
325 pr2serr("Warning: --maxlen=LEN less than %d ignored\n", in main()
339 pr2serr("bad argument to '--scan-len'\n"); in main()
350 pr2serr("'--report-type=RT' should be between 0 and 255 " in main()
[all …]

1234