Home
last modified time | relevance | path

Searched refs:max_b_len (Results 1 – 2 of 2) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_pt_linux.c722 get_scsi_pt_transport_err_str(const struct sg_pt_base * vp, int max_b_len, in get_scsi_pt_transport_err_str() argument
733 if (max_b_len < 1) in get_scsi_pt_transport_err_str()
735 m = max_b_len; in get_scsi_pt_transport_err_str()
746 b[max_b_len - 1] = '\0'; in get_scsi_pt_transport_err_str()
761 b[max_b_len - 1] = '\0'; in get_scsi_pt_transport_err_str()
797 get_scsi_pt_os_err_str(const struct sg_pt_base * vp, int max_b_len, char * b) in get_scsi_pt_os_err_str() argument
803 strncpy(b, cp, max_b_len); in get_scsi_pt_os_err_str()
804 if ((int)strlen(cp) >= max_b_len) in get_scsi_pt_os_err_str()
805 b[max_b_len - 1] = '\0'; in get_scsi_pt_os_err_str()
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_pt.h165 char * get_scsi_pt_os_err_str(const struct sg_pt_base * objp, int max_b_len,
172 int max_b_len, char * b);