letoh
if (letoh(entry->error_count) == 0) {
if (letoh(entry->error_count) == 0)
status = letoh(entry->status);
printf(" Error count: %ju\n", letoh(entry->error_count));
printf(" Submission queue ID: %u\n", letoh(entry->sqid));
printf(" Command ID: %u\n", letoh(entry->cid));
printf(" Error location: %u\n", letoh(entry->error_location));
printf(" LBA: %ju\n", letoh(entry->lba));
printf(" Namespace ID: %u\n", letoh(entry->nsid));
printf(" Vendor specific info: %u\n", letoh(entry->vendor_specific));
printf(" Transport type: %u\n", letoh(entry->trtype));
printf(" Command specific info:%ju\n", letoh(entry->csi));
printf(" Transport specific: %u\n", letoh(entry->ttsi));
warning = letoh(health->critical_warning);
print_temp_K(letoh(health->temperature));
letoh(health->available_spare));
letoh(health->available_spare_threshold));
letoh(health->percentage_used));
printf("Warning Temp Composite Time: %d\n", letoh(health->warning_temp_time));
printf("Error Temp Composite Time: %d\n", letoh(health->error_temp_time));
if (letoh(health->temp_sensor[i]) == 0)
print_temp_K(letoh(health->temp_sensor[i]));
printf("Temperature 1 Transition Count: %d\n", letoh(health->tmt1tc));
printf("Temperature 2 Transition Count: %d\n", letoh(health->tmt2tc));
printf("Total Time For Temperature 1: %d\n", letoh(health->ttftmt1));
printf("Total Time For Temperature 2: %d\n", letoh(health->ttftmt2));
for (i = 0; i < nitems(nsl->ns) && letoh(nsl->ns[i]) != 0; i++) {
printf("%08x\n", letoh(nsl->ns[i]));
s = letoh(ce->acs[i]);
s = letoh(ce->iocs[i]);
(uintmax_t)letoh(rn->log_page_count));
switch (letoh(rn->log_page_type)) {
printf("Unknown %x\n", letoh(rn->log_page_type));
printf("Number of Available Log Pages: %d\n", letoh(rn->available_log_pages));
printf("Namespace ID: 0x%x\n", letoh(rn->nsid));
sprog = letoh(ss->sprog);
sstat = letoh(ss->sstat);
printf("Sanitize Command Dword 10: 0x%x\n", letoh(ss->scdw10));
printf("Time For Overwrite: %u sec\n", letoh(ss->etfo));
printf("Time For Block Erase: %u sec\n", letoh(ss->etfbe));
printf("Time For Crypto Erase: %u sec\n", letoh(ss->etfce));
printf("Time For Overwrite No-Deallocate: %u sec\n", letoh(ss->etfownd));
printf("Time For Block Erase No-Deallocate: %u sec\n", letoh(ss->etfbewnd));
printf("Time For Crypto Erase No-Deallocate: %u sec\n", letoh(ss->etfcewnd));
switch (letoh(dst->curr_operation)) {
printf("Reserved (0x%x)\n", letoh(dst->curr_operation));
if (letoh(dst->curr_operation) != 0)
printf("Current Completion: %u%%\n", letoh(dst->curr_compl) & 0x7f);
status = letoh(dst->result[r].status);
letoh(dst->result[r].segment_num));
if (letoh(dst->result[r].valid_diag_info) & BIT(0))
printf(" NSID=0x%x", letoh(dst->result[r].nsid));
if (letoh(dst->result[r].valid_diag_info) & BIT(1)) {
printf(" FLBA=0x%jx", (uintmax_t)letoh(failing_lba));
if (letoh(dst->result[r].valid_diag_info) & BIT(2))
printf(" SCT=0x%x", letoh(dst->result[r].status_code_type));
if (letoh(dst->result[r].valid_diag_info) & BIT(3))
printf(" SC=0x%x", letoh(dst->result[r].status_code));
printf(" VENDOR_SPECIFIC=0x%x", letoh(vs));
print_temp_C(letoh(temp->current));
(uintmax_t)letoh(temp->overtemp_flag_last));
(uintmax_t)letoh(temp->overtemp_flag_life));
print_temp_C(letoh(temp->max_temp));
print_temp_C(letoh(temp->min_temp));
print_temp_C(letoh(temp->max_oper_temp));
print_temp_C(letoh(temp->min_oper_temp));
(uintmax_t)letoh(temp->est_offset));
size = letoh(tlp.da1_last);
size = letoh(tlp.da2_last);
size = letoh(tlp.da3_last);