Lines Matching refs:blen
175 get_prov_status_str(int ps, char * b, int blen) in get_prov_status_str() argument
179 sg_scnpr(b, blen, "mapped (or unknown)"); in get_prov_status_str()
182 sg_scnpr(b, blen, "deallocated"); in get_prov_status_str()
185 sg_scnpr(b, blen, "anchored"); in get_prov_status_str()
188 sg_scnpr(b, blen, "mapped"); /* sbc4r12 */ in get_prov_status_str()
191 sg_scnpr(b, blen, "unknown"); /* sbc4r12 */ in get_prov_status_str()
194 sg_scnpr(b, blen, "unknown provisioning status: %d", ps); in get_prov_status_str()
201 get_pr_status_str(int as, char * b, int blen) in get_pr_status_str() argument
205 sg_scnpr(b, blen, "%s", ""); in get_pr_status_str()
208 sg_scnpr(b, blen, "may contain unrecovered errors"); in get_pr_status_str()
211 sg_scnpr(b, blen, "unknown additional status: %d", as); in get_pr_status_str()
255 static const size_t blen = sizeof(b); in main() local
571 snprintf(b, blen, "No indication of the completion condition"); in main()
574 snprintf(b, blen, "Command completed due to meeting allocation " in main()
578 snprintf(b, blen, "Command completed due to meeting scan length"); in main()
581 snprintf(b, blen, "Command completed due to meeting capacity of " in main()
585 snprintf(b, blen, "Command completion is reserved [%d]", in main()
609 n += sg_scnpr(b + n, blen - n, "0x"); in main()
611 n += sg_scnpr(b + n, blen - n, "%02x", bp[j]); in main()
613 n += sg_scnpr(b + n, blen - n, " 0x%x %d %d", in main()
616 n += sg_scnpr(b + n, blen - n, " %u %d %d", in main()
628 get_prov_status_str(res, b, blen)); in main()
630 get_pr_status_str(add_status, b, blen)); in main()
635 n += sg_scnpr(b + n, blen - n, "[%d] LBA: 0x", k + 1); in main()
637 n += sg_scnpr(b + n, blen - n, "%02x", bp[j]); in main()
641 n += sg_scnpr(b + n, blen - n, " blocks: %10s", d); in main()
643 n += sg_scnpr(b + n, blen - n, " blocks: %10u", in main()
646 n += sg_scnpr(b + n, blen - n, " %s", d); in main()
649 n += sg_scnpr(b + n, blen - n, " [%s]", d); in main()