/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_cmds_extra.c | 104 static int pr2ws(const char * fmt, ...) 107 static int pr2ws(const char * fmt, ...); 112 pr2ws(const char * fmt, ...) in pr2ws() function 128 pr2ws("%s: out of memory\n", cname); in create_pt_obj() 153 pr2ws(" %s cdb: ", cdb_name_s); in sg_ll_get_lba_status16() 155 pr2ws("%02x ", getLbaStatCmd[k]); in sg_ll_get_lba_status16() 156 pr2ws("\n"); in sg_ll_get_lba_status16() 184 pr2ws(" %s: response\n", cdb_name_s); in sg_ll_get_lba_status16() 186 pr2ws("%s:\n", (ret > 256 ? ", first 256 bytes" : "")); in sg_ll_get_lba_status16() 190 pr2ws(":\n"); in sg_ll_get_lba_status16() [all …]
|
D | sg_cmds_mmc.c | 41 static int pr2ws(const char * fmt, ...) 44 static int pr2ws(const char * fmt, ...); 49 pr2ws(const char * fmt, ...) in pr2ws() function 65 pr2ws("%s: out of memory\n", cname); in create_pt_obj() 90 pr2ws(" %s cdb: ", cdb_name_s); in sg_ll_set_cd_speed() 92 pr2ws("%02x ", scsCmdBlk[k]); in sg_ll_set_cd_speed() 93 pr2ws("\n"); in sg_ll_set_cd_speed() 147 pr2ws("Bad rt value: %d\n", rt); in sg_ll_get_config() 152 pr2ws("Bad starting field number: 0x%x\n", starting); in sg_ll_get_config() 157 pr2ws("Bad mx_resp_len: 0x%x\n", starting); in sg_ll_get_config() [all …]
|
D | sg_cmds_basic2.c | 73 static int pr2ws(const char * fmt, ...) 76 static int pr2ws(const char * fmt, ...); 81 pr2ws(const char * fmt, ...) in pr2ws() function 97 pr2ws("%s: out of memory\n", cname); in create_pt_obj() 122 pr2ws("count too big\n"); in sg_ll_sync_cache_10() 128 pr2ws(" %s cdb: ", cdb_name_s); in sg_ll_sync_cache_10() 130 pr2ws("%02x ", sc_cdb[k]); in sg_ll_sync_cache_10() 131 pr2ws("\n"); in sg_ll_sync_cache_10() 183 pr2ws(" %s cdb: ", cdb_name_s); in sg_ll_readcap_16() 185 pr2ws("%02x ", rc_cdb[k]); in sg_ll_readcap_16() [all …]
|
D | sg_io_linux.c | 27 static int pr2ws(const char * fmt, ...) 30 static int pr2ws(const char * fmt, ...); 35 pr2ws(const char * fmt, ...) in pr2ws() function 70 pr2ws("Host_status=0x%02x ", host_status); in sg_print_host_status() 72 pr2ws("is invalid "); in sg_print_host_status() 74 pr2ws("[%s] ", linux_host_bytes[host_status]); in sg_print_host_status() 112 pr2ws("Driver_status=0x%02x", driver_status); in sg_print_driver_status() 113 pr2ws(" [%s] ", driv_cp); in sg_print_driver_status() 131 pr2ws("%s: ", leadin); in sg_linux_sense_print() 133 pr2ws("SCSI status: "); in sg_linux_sense_print() [all …]
|
D | sg_cmds_basic.c | 68 static int pr2ws(const char * fmt, ...) 71 static int pr2ws(const char * fmt, ...); 76 pr2ws(const char * fmt, ...) in pr2ws() function 158 pr2ws("%s:\n", leadin); in sg_cmds_process_helper() 161 pr2ws("%s", b); in sg_cmds_process_helper() 165 pr2ws(" %s requested %d bytes (data-in) but got %d " in sg_cmds_process_helper() 199 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() 203 pr2ws("map ENXIO to SG_LIB_CAT_NOT_READY\n"); in sg_cmds_process_resp() 207 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() 211 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() [all …]
|
D | sg_pt_linux_nvme.c | 123 static int pr2ws(const char * fmt, ...) 126 static int pr2ws(const char * fmt, ...); 131 pr2ws(const char * fmt, ...) in pr2ws() function 204 pr2ws("%s: max_response_len=%d too short, want 14 or more\n", in mk_sense_asc_ascq() 212 pr2ws("%s: [sense_key,asc,ascq]: [0x%x,0x%x,0x%x]\n", __func__, sk, in mk_sense_asc_ascq() 236 pr2ws("%s: sense_len=%d too short, want 14 or more\n", __func__, n); in mk_sense_from_nvme_status() 243 pr2ws("%s: [status, sense_key,asc,ascq]: [0x%x, 0x%x,0x%x,0x%x]\n", in mk_sense_from_nvme_status() 262 pr2ws("%s: max_response_len=%d too short, want 14 or more\n", in mk_sense_invalid_fld() 287 pr2ws("%s: [sense_key,asc,ascq]: [0x5,0x%x,0x0] %c byte=%d, bit=%d\n", in mk_sense_invalid_fld() 312 pr2ws("NVMe command:\n"); in do_nvme_admin_cmd() [all …]
|
D | sg_pt_linux.c | 117 static int pr2ws(const char * fmt, ...) 120 static int pr2ws(const char * fmt, ...); 125 pr2ws(const char * fmt, ...) in pr2ws() function 153 pr2ws("fopen %s failed: %s\n", proc_devices, strerror(errno)); in sg_find_bsg_nvme_char_major() 180 pr2ws("found sg_bsg_major=%d\n", sg_bsg_major); in sg_find_bsg_nvme_char_major() 182 pr2ws("found sg_nvme_char_major=%d\n", sg_nvme_char_major); in sg_find_bsg_nvme_char_major() 184 pr2ws("found no bsg not nvme char device in %s\n", proc_devices); in sg_find_bsg_nvme_char_major() 210 pr2ws("%s: fstat() failed: %s (errno=%d)\n", __func__, in check_file_type() 230 pr2ws("%s: ioctl(NVME_IOCTL_ID) failed: %s " in check_file_type() 240 pr2ws("%s: invalid file descriptor (%d)\n", __func__, dev_fd); in check_file_type() [all …]
|
D | sg_lib.c | 57 static int pr2ws(const char * fmt, ...) 60 static int pr2ws(const char * fmt, ...); 65 pr2ws(const char * fmt, ...) in pr2ws() function 158 pr2ws("%s [", buff); in sg_print_command() 164 pr2ws("%02x ", command[k]); in sg_print_command() 165 pr2ws("]\n"); in sg_print_command() 210 pr2ws("%s ", buff); in sg_print_scsi_status() 1838 pr2ws("%s", cp); in sg_print_sense() 1860 pr2ws("%sDevice not ready\n", s); in sg_if_can2stderr() 1863 pr2ws("%sMedium or hardware error\n", s); /* 3 sense keys: Medium, */ in sg_if_can2stderr() [all …]
|