Home | History | Annotate | Download | only in sg_write_buffer

Lines Matching full:scnpr

77 static int scnpr(char * cp, int cp_max_len, const char * fmt, ...)
80 static int scnpr(char * cp, int cp_max_len, const char * fmt, ...);
91 scnpr(char * cp, int cp_max_len, const char * fmt, ...)
198 scnpr(buff, buff_len, "Unknown status [0x%x]", scsi_status);
200 scnpr(buff, buff_len, "%s", ccp);
241 scnpr(buff, buff_len, "%s", sg_lib_sense_key_desc[sense_key]);
243 scnpr(buff, buff_len, "invalid value: 0x%x", sense_key);
266 num = scnpr(buff, buff_len, "Additional sense: ");
268 scnpr(buff + num, ((rlen > 0) ? rlen : 0), ei2p->text, ascq);
279 scnpr(buff, buff_len, "Additional sense: %s", eip->text);
284 scnpr(buff, buff_len, "vendor specific ASC=%02x, ASCQ=%02x "
287 scnpr(buff, buff_len, "ASC=%02x, vendor specific qualification "
290 scnpr(buff, buff_len, "ASC=%02x, ASCQ=%02x (hex)", asc, ascq);
495 scnpr(buff, buff_len, "bad pdt");
497 scnpr(buff, buff_len, "%s", sg_lib_pdt_strs[pdt]);
513 scnpr(buff, buff_len, "bad tpi");
515 scnpr(buff, buff_len, "%s", sg_lib_transport_proto_strs[tpi]);
542 n += scnpr(b + n, blen - n, "%sTransport Id short or not "
545 n += scnpr(b + n, blen - n, "%sTransport Id of initiator:\n",
553 n += scnpr(b + n, blen - n, "%s FCP-2 World Wide Name:\n", lip);
555 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: "
561 n += scnpr(b + n, blen - n, "%s Parallel SCSI initiator SCSI "
564 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: "
566 n += scnpr(b + n, blen - n, "%s relative port number (of "
572 n += scnpr(b + n, blen - n, "%s SSA (transport id not "
574 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip,
580 n += scnpr(b + n, blen - n, "%s IEEE 1394 EUI-64 name:\n", lip);
582 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: "
588 n += scnpr(b + n, blen - n, "%s RDMA initiator port "
591 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: "
597 n += scnpr(b + n, blen - n, "%s iSCSI ", lip);
600 n += scnpr(b + n, blen - n, "name: %.*s\n", num, &bp[4]);
602 n += scnpr(b + n, blen - n, "world wide unique port id: "
605 n += scnpr(b + n, blen - n, " [Unexpected TPID format: "
614 n += scnpr(b + n, blen - n, "%s SAS address: 0x%" PRIx64 "\n",
617 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: "
622 n += scnpr(b + n, blen - n, "%s ADT:\n", lip);
623 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip,
629 n += scnpr(b + n, blen - n, "%s ATAPI:\n", lip);
630 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip,
636 n += scnpr(b + n, blen - n, "%s UAS:\n", lip);
637 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip,
643 n += scnpr(b + n, blen - n, "%s SOP ", lip);
646 n += scnpr(b + n, blen - n, "Routing ID: 0x%x\n", num);
648 n += scnpr(b + n, blen - n, " [Unexpected TPID format: "
655 n += scnpr(b + n, blen - n, "%s PCIE:\n", lip);
656 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip,
662 n += scnpr(b + n, blen - n, "%s No specified protocol\n", lip);
668 n += scnpr(b + n, blen - n, "%s unknown protocol id=0x%x "
759 n += scnpr(b + n, blen - n, "%sdesignator desc too short: got "
765 n += scnpr(b + n, blen - n, "%sdesignator too long: says it is %d "
776 n += scnpr(b + n, blen - n, "%s %s:\n", lip, cp);
777 n += scnpr(b + n, blen - n, "%s designator type: ", lip);
780 n += scnpr(b + n, blen - n, "%s", cp);
781 n += scnpr(b + n, blen - n, ", code set: ");
784 n += scnpr(b + n, blen - n, "%s", cp);
785 n += scnpr(b + n, blen - n, "\n");
787 n += scnpr(b + n, blen - n, "%s transport: %s\n", lip,
800 n += scnpr(b + n, blen - n, "%s vendor specific: %.*s\n",
803 n += scnpr(b + n, blen - n, "%s vendor specific:\n", lip);
808 n += scnpr(b + n, blen - n, "%s vendor id: %.8s\n", lip, ip);
811 n += scnpr(b + n, blen - n, "%s vendor specific: "
814 n += scnpr(b + n, blen - n, "%s vendor specific: 0x",
817 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
818 n += scnpr(b + n, blen - n, "\n");
825 n += scnpr(b + n, blen - n, "%s << expect 8, 12 and 16 "
830 n += scnpr(b + n, blen - n, "%s 0x", lip);
832 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
833 n += scnpr(b + n, blen - n, "\n");
836 n += scnpr(b + n, blen - n, "%s EUI-64 based %d byte "
839 n += scnpr(b + n, blen - n, "%s << expected binary code_set "
848 n += scnpr(b + n, blen - n, "%s Identifier extension: 0x%"
851 n += scnpr(b + n, blen - n, "%s << can only decode 8, 12 "
857 n += scnpr(b + n, blen - n, "%s IEEE Company_id: 0x%x\n", lip,
865 n += scnpr(b + n, blen - n, "%s Vendor Specific Extension "
869 n += scnpr(b + n, blen - n, "%s Directory ID: 0x%x\n", lip,
875 n += scnpr(b + n, blen - n, "%s << unexpected code set %d "
884 n += scnpr(b + n, blen - n, "%s << unexpected NAA 2 "
893 n += scnpr(b + n, blen - n, "%s NAA 2, vendor specific "
895 n += scnpr(b + n, blen - n, "%s IEEE Company_id: 0x%x\n",
897 n += scnpr(b + n, blen - n, "%s vendor specific "
899 n += scnpr(b + n, blen - n, "%s [0x", lip);
901 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
902 n += scnpr(b + n, blen - n, "]\n");
904 n += scnpr(b + n, blen - n, "%s 0x", lip);
906 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
907 n += scnpr(b + n, blen - n, "\n");
911 n += scnpr(b + n, blen - n, "%s << unexpected NAA 3 "
917 n += scnpr(b + n, blen - n, "%s NAA 3, Locally "
919 n += scnpr(b + n, blen - n, "%s 0x", lip);
921 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
922 n += scnpr(b + n, blen - n, "\n");
926 n += scnpr(b + n, blen - n, "%s << unexpected NAA 5 "
939 n += scnpr(b + n, blen - n, "%s NAA 5, IEEE "
941 n += scnpr(b + n, blen - n, "%s Vendor Specific "
943 n += scnpr(b + n, blen - n, "%s [0x", lip);
945 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
946 n += scnpr(b + n, blen - n, "]\n");
948 n += scnpr(b + n, blen - n, "%s 0x", lip);
950 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
951 n += scnpr(b + n, blen - n, "\n");
956 n += scnpr(b + n, blen - n, "%s << unexpected NAA 6 "
969 n += scnpr(b + n, blen - n, "%s NAA 6, IEEE "
971 n += scnpr(b + n, blen - n, "%s Vendor Specific "
974 n += scnpr(b + n, blen - n, "%s Vendor Specific "
977 n += scnpr(b + n, blen - n, "%s [0x", lip);
979 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
980 n += scnpr(b + n, blen - n, "]\n");
982 n += scnpr(b + n, blen - n, "%s 0x", lip);
984 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[m]);
985 n += scnpr(b + n, blen - n, "\n");
989 n += scnpr(b + n, blen - n, "%s << unexpected NAA [0x%x] "
997 n += scnpr(b + n, blen - n, "%s << expected binary "
1004 n += scnpr(b + n, blen - n, "%s Relative target port: 0x%x\n",
1009 n += scnpr(b + n, blen - n, "%s << expected binary "
1016 n += scnpr(b + n, blen - n, "%s Target port group: 0x%x\n", lip,
1021 n += scnpr(b + n, blen - n, "%s << expected binary "
1028 n += scnpr(b + n, blen - n, "%s Logical unit group: 0x%x\n", lip,
1033 n += scnpr(b + n, blen - n, "%s << expected binary "
1038 n += scnpr(b + n, blen - n, "%s MD5 logical unit identifier:\n",
1046 n += scnpr(b + n, blen - n, "%s << expected UTF-8, "
1049 n += scnpr(b + n, blen - n, "%s << expected UTF-8 "
1055 n += scnpr(b + n, blen - n, "%s SCSI name string:\n", lip);
1060 n += scnpr(b + n, blen - n, "%s %.*s\n", lip, dlen,
1067 n += scnpr(b + n, blen - n, " %s >>>> Protocol specific "
1072 n += scnpr(b + n, blen - n, "%s USB device address: 0x%x\n",
1074 n += scnpr(b + n, blen - n, "%s USB interface number: "
1077 n += scnpr(b + n, blen - n, "%s PCIe routing ID, bus "
1079 n += scnpr(b + n, blen - n, "%s function number: 0x%x\n",
1081 n += scnpr(b + n, blen - n, "%s [or device number: "
1085 n += scnpr(b + n, blen - n, "%s >>>> unexpected protocol "
1092 n += scnpr(b + n, blen - n, "%s << expected binary "
1098 n += scnpr(b + n, blen - n, "%s << expected locally "
1103 n += scnpr(b + n, blen - n, "%s Locally assigned UUID: ", lip);
1106 n += scnpr(b + n, blen - n, "-");
1107 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[2 + m]);
1109 n += scnpr(b + n, blen - n, "\n");
1111 n += scnpr(b + n, blen - n, "%s [0x", lip);
1113 n += scnpr(b + n, blen - n, "%02x", (unsigned int)ip[2 + m]);
1114 n += scnpr(b + n, blen - n, "]\n");
1118 n += scnpr(b + n, blen - n, "%s reserved designator=0x%x\n", lip,
1138 n += scnpr(b + n, blen - n, "Field pointer: ");
1142 n += scnpr(b + n, blen - n, "Field pointer:\n");
1143 n += scnpr(b + n, blen - n, "%s Error in %s: byte %d", lip,
1148 n += scnpr(b + n, blen - n, " bit %d\n", descp[4] & 0x07);
1150 n += scnpr(b + n, blen - n, "\n");
1155 n += scnpr(b + n, blen - n, "Actual retry count: ");
1158 n += scnpr(b + n, blen - n,"%u\n", sg_get_unaligned_be16(descp + 5));
1162 n += scnpr(b + n, blen - n, "Progress indication: ");
1168 n += scnpr(b + n, blen - n, "%d.%02d%%\n", pr, rem);
1171 n += scnpr(b + n, blen - n, "Segment pointer:\n");
1174 n += scnpr(b + n, blen - n, "%s Relative to start of %s, byte "
1179 n += scnpr(b + n, blen - n, " bit %d\n", descp[4] & 0x07);
1181 n += scnpr(b + n, blen - n, "\n");
1184 n += scnpr(b + n, blen - n, "Unit attention condition queue:\n");
1185 n += scnpr(b + n, blen - n, "%s overflow flag is %d\n", lip,
1189 n += scnpr(b + n, blen - n, "Sense_key: 0x%x unexpected\n",
1197 n += scnpr(b + n, blen - n, "%s\n", " >> descriptor too short");
1214 return scnpr(b, blen, "active/optimized");
1216 return scnpr(b, blen, "active/non optimized");
1218 return scnpr(b, blen, "standby");
1220 return scnpr(b, blen, "unavailable");
1222 return scnpr(b, blen, "offline");
1224 return scnpr(b, blen, "transitioning between states");
1226 return scnpr(b, blen, "unknown: 0x%x", st);
1243 n += scnpr(b + n, blen - n, "%s Not all referrals: %d\n", lip,
1249 n += scnpr(b + n, blen - n, "%s Descriptor %d\n", lip, f);
1251 n += scnpr(b + n, blen - n, "%s truncated descriptor, "
1256 n += scnpr(b + n, blen - n, "%s first uds LBA: 0x%" PRIx64 "\n",
1259 n += scnpr(b + n, blen - n, "%s last uds LBA: 0x%" PRIx64 "\n",
1264 n += scnpr(b + n, blen - n, "%s tpg: %d state: %s\n",
1299 scnpr(z, sizeof(z), "%.60s ", lip);
1301 scnpr(z, sizeof(z), " ");
1314 n += scnpr(b + n, blen - n, "%s Descriptor type: ", lip);
1318 n += scnpr(b + n, blen - n, "Information: ");
1320 n += scnpr(b + n, blen - n, "0x");
1322 n += scnpr(b + n, blen - n, "%02x", descp[4 + j]);
1323 n += scnpr(b + n, blen - n, "\n");
1325 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1330 n += scnpr(b + n, blen - n, "Command specific: ");
1332 n += scnpr(b + n, blen - n, "0x");
1334 n += scnpr(b + n, blen - n, "%02x", descp[4 + j]);
1335 n += scnpr(b + n, blen - n, "\n");
1337 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1342 n += scnpr(b + n, blen - n, "Sense key specific: ");
1347 n += scnpr(b + n, blen - n, "Field replaceable unit code: ");
1349 n += scnpr(b + n, blen - n, "0x%x\n", descp[3]);
1351 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1356 n += scnpr(b + n, blen - n, "Stream commands: ");
1359 n += scnpr(b + n, blen - n, "FILEMARK");
1361 n += scnpr(b + n, blen - n, "End Of Medium (EOM)");
1363 n += scnpr(b + n, blen - n, "Incorrect Length Indicator "
1365 n += scnpr(b + n, blen - n, "\n");
1367 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1372 n += scnpr(b + n, blen - n, "Block commands: ");
1374 n += scnpr(b + n, blen - n, "Incorrect Length Indicator "
1377 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1382 n += scnpr(b + n, blen - n, "OSD object identification\n");
1386 n += scnpr(b + n, blen - n, "OSD response integrity check "
1391 n += scnpr(b + n, blen - n, "OSD attribute identification\n");
1395 n += scnpr(b + n, blen - n, "ATA Status Return: ");
1401 n += scnpr(b + n, blen - n, "extend=%d error=0x%x \n%s"
1405 n += scnpr(b + n, blen - n,
1410 n += scnpr(b + n, blen - n, "lba=0x%02x%02x%02x ",
1412 n += scnpr(b + n, blen - n, "device=0x%x status=0x%x\n",
1415 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1421 n += scnpr(b + n, blen - n, "Another progress indication: ");
1423 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1430 n += scnpr(b + n, blen - n, "%d.02%d%%\n", pr, rem);
1431 n += scnpr(b + n, blen - n, "%s [sense_key=0x%x "
1436 n += scnpr(b + n, blen - n, "User data segment referral: ");
1438 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1442 n += scnpr(b + n, blen - n, "\n");
1447 n += scnpr(b + n, blen - n, "Forwarded sense data\n");
1449 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1453 n += scnpr(b + n, blen - n, "%s FSDT: %s\n", lip,
1456 n += scnpr(b + n, blen - n, "%s Sense data source: ", lip);
1459 n += scnpr(b + n, blen - n, "%s source device\n", eccp);
1468 n += scnpr(b + n, blen - n, "%s %s %d\n", eccp, ddp, j - 1);
1471 n += scnpr(b + n, blen - n, "unknown [%d]\n", j);
1478 n += scnpr(b + n, blen - n, "%s Forwarded status: %s\n",
1482 n += scnpr(b + n, blen - n, "%s vvvvvvvvvvvvvvvv\n", lip);
1485 n += scnpr(b + n, blen - n, "%s", c);
1486 n += scnpr(b + n, blen - n, "%s ^^^^^^^^^^^^^^^^\n", lip);
1492 n += scnpr(b + n, blen - n, "Direct-access block device\n");
1494 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1499 n += scnpr(b + n, blen - n, "%s ILI (incorrect length "
1502 n += scnpr(b + n, blen - n, "%s Sense key specific: ",
1507 n += scnpr(b + n, blen - n, "%s Field replaceable unit code: "
1510 n += scnpr(b + n, blen - n, "%s Information: 0x", lip);
1512 n += scnpr(b + n, blen - n, "%02x", descp[8 + j]);
1513 n += scnpr(b + n, blen - n, "\n");
1515 n += scnpr(b + n, blen - n, "%s Command specific: 0x", lip);
1517 n += scnpr(b + n, blen - n, "%02x", descp[16 + j]);
1518 n += scnpr(b + n, blen - n, "\n");
1521 n += scnpr(b + n, blen - n, "Device designation\n");
1525 n += scnpr(b + n, blen - n, "%s Usage reason: %s\n", lip,
1528 n += scnpr(b + n, blen - n, "%s Usage reason: "
1535 n += scnpr(b + n, blen - n, "Microcode activation ");
1537 n += scnpr(b + n, blen - n, "%s\n", dtsp);
1542 n += scnpr(b + n, blen - n, "time: ");
1544 n += scnpr(b + n, blen - n, "unknown\n");
1546 n += scnpr(b + n, blen - n, "%d seconds\n", progress);
1550 n += scnpr(b + n, blen - n, "Vendor specific [0x%x]\n",
1553 n += scnpr(b + n, blen - n, "Unknown [0x%x]\n", descp[0]);
1559 n += scnpr(b + n, blen - n, "%s ", lip);
1562 n += scnpr(b + n, blen - n, "\n%s ", lip);
1563 n += scnpr(b + n, blen - n, "%02x ", descp[j + 2]);
1565 n += scnpr(b + n, blen - n, "\n");
1569 n += scnpr(b + n, blen - n, "%s short descriptor\n", lip);
1590 n += scnpr(b + n, blen - n, "%s >> expected Sense key: Recovered "
1597 n += scnpr(b + n, blen - n, "%s error=0x%x, status=0x%x, device=0x%x, "
1600 n += scnpr(b + n, blen - n, "%s extend=%d, log_index=0x%x, "
1634 n += scnpr(cbp, cblen, "%s >>> sense buffer empty\n", lip);
1669 scnpr(ebuff, sizeof(ebuff), "Unknown response code: 0x%x",
1674 n += scnpr(cbp + n, cblen - n, "%s%s; Sense key: %s\n", lip, ebp,
1677 n += scnpr(cbp + n, cblen - n, "%s<<<Sense data overflow>>>\n",
1680 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip,
1687 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip,
1693 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip,
1697 r += scnpr(b + r, blen - r, "%s", lip);
1701 r += scnpr(b + r, blen - r, " Info fld=0x%x [%u] ",
1704 r += scnpr(b + r, blen - r, " Valid=0, Info fld=0x%x "
1710 r += scnpr(b + r, blen - r, " FMK");
1713 r += scnpr(b + r, blen - r, " EOM");
1716 r += scnpr(b + r, blen - r, " ILI");
1718 r += scnpr(b + r, blen - r, "\n");
1720 r += scnpr(b + r, blen - r, "\n");
1722 r += scnpr(b + r, blen - r, "%s Field replaceable unit "
1728 scnpr(b + r, blen - r, "%s Sense Key Specific: "
1734 r += scnpr(b + r, blen - r, " bit %d\n",
1737 r += scnpr(b + r, blen - r, "\n");
1744 r += scnpr(b + r, blen - r, "%s Progress indication: "
1750 r += scnpr(b + r, blen - r, "%s Actual retry count: "
1754 r += scnpr(b + r, blen - r, "%s Segment pointer: ", lip);
1755 r += scnpr(b + r, blen - r, "Relative to start of %s, "
1760 r += scnpr(b + r, blen - r, " bit %d\n",
1763 r += scnpr(b + r, blen - r, "\n");
1766 r += scnpr(b + r, blen - r, "%s Unit attention "
1768 r += scnpr(b + r, blen - r, "overflow flag is %d\n",
1772 r += scnpr(b + r, blen - r, "%s Sense_key: 0x%x "
1778 n += scnpr(cbp + n, cblen - n, "%s", b);
1780 n += scnpr(cbp + n, cblen - n, "%s fixed descriptor length "
1784 n += scnpr(cbp + n, cblen - n, "%ssense buffer too short (4 "
1789 n += scnpr(cbp + n, cblen - n, "%sVendor specific sense buffer, "
1797 r += scnpr(b + r, blen - r, "%s", lip);
1798 r += scnpr(b + r, blen - r, "Probably uninitialized data.\n%s Try "
1800 r += scnpr(b + r, blen - r, " AdValid=%d Error class=%d Error "
1804 scnpr(b + r, blen - r, "%s lba=0x%x\n", lip,
1806 n += scnpr(cbp + n, cblen - n, "%s\n", b);
1815 n += scnpr(cbp + n, cblen - n, "%s Raw sense data (in hex):\n",
1819 scnpr(z, sizeof(z), "%.50s ", lip);
2065 scnpr(buff, buff_len, "%s", "<null> command pointer");
2130 scnpr(buff, buff_len, "%s, %s", osp->prefix,
2133 scnpr(buff, buff_len, "%s", vnp->name);
2136 scnpr(buff, buff_len, "%s service action=0x%x", b,
2161 scnpr(buff, buff_len, "%s", "Variable length");
2173 scnpr(buff, buff_len, "%s", vnp->name);
2175 scnpr(buff, buff_len, "Opcode=0x%x", (int)cmd_byte0);
2178 scnpr(buff, buff_len, "Reserved [0x%x]", (int)cmd_byte0);
2182 scnpr(buff, buff_len, "Vendor specific [0x%x]", (int)cmd_byte0);
2185 scnpr(buff, buff_len, "Opcode=0x%x", (int)cmd_byte0);
2248 scnpr(buff, buff_len, "No errors");
2251 scnpr(buff, buff_len, "Syntax error");
2254 n = scnpr(buff, buff_len, "Not ready");
2256 scnpr(buff + n, buff_len - n, " sense key");
2259 n = scnpr(buff, buff_len, "Medium or hardware error");
2261 scnpr(buff + n, buff_len - n, " sense key (plus blank check)");
2264 n = scnpr(buff, buff_len, "Illegal request");
2266 scnpr(buff + n, buff_len - n, " sense key, apart from Invalid "
2270 n = scnpr(buff, buff_len, "Unit attention");
2272 scnpr(buff + n, buff_len - n, " sense key");
2275 n = scnpr(buff, buff_len, "Data protect");
2277 scnpr(buff + n, buff_len - n, " sense key, write protected "
2281 n = scnpr(buff, buff_len, "Illegal request, invalid opcode");
2283 scnpr(buff + n, buff_len - n, " sense key");
2286 n = scnpr(buff, buff_len, "Copy aborted");
2288 scnpr(buff + n, buff_len - n, " sense key");
2291 n = scnpr(buff, buff_len, "Aborted command");
2293 scnpr(buff + n, buff_len - n, " sense key, other than "
2297 n = scnpr(buff, buff_len, "Miscompare");
2299 scnpr(buff + n, buff_len - n, " sense key");
2302 scnpr(buff, buff_len, "File error");
2305 scnpr(buff, buff_len, "Illegal request with info");
2308 scnpr(buff, buff_len, "Medium or hardware error with info");
2311 n = scnpr(buff, buff_len, "No sense key");
2313 scnpr(buff + n, buff_len - n, " probably additional sense "
2317 n = scnpr(buff, buff_len, "Recovered error");
2319 scnpr(buff + n, buff_len - n, " sense key");
2322 n = scnpr(buff, buff_len, "Reservation conflict");
2324 scnpr(buff + n, buff_len - n, " SCSI status");
2327 n = scnpr(buff, buff_len, "Condition met");
2329 scnpr(buff + n, buff_len - n, " SCSI status");
2332 n = scnpr(buff, buff_len, "Busy");
2334 scnpr(buff + n, buff_len - n, " SCSI status");
2337 n = scnpr(buff, buff_len, "Task set full");
2339 scnpr(buff + n, buff_len - n, " SCSI status");
2342 n = scnpr(buff, buff_len, "ACA active");
2344 scnpr(buff + n, buff_len - n, " SCSI status");
2347 n = scnpr(buff, buff_len, "Task aborted");
2349 scnpr(buff + n, buff_len - n, " SCSI status");
2352 scnpr(buff, buff_len, "SCSI command timeout");
2355 n = scnpr(buff, buff_len, "Aborted command, protection");
2357 scnpr(buff + n, buff_len - n, " information (PI) problem");
2360 n = scnpr(buff, buff_len, "Aborted command with info, protection");
2362 scnpr(buff + n, buff_len - n, " information (PI) problem");
2365 n = scnpr(buff, buff_len, "Malformed response");
2367 scnpr(buff + n, buff_len - n, " to SCSI command");
2370 n = scnpr(buff, buff_len, "Some other sense data problem");
2372 scnpr(buff + n, buff_len - n, ", try '-v' option for more "
2376 n = scnpr(buff, buff_len, "Some other error/warning has occurred");
2378 scnpr(buff + n, buff_len - n, ", possible transport of driver "
2386 n = scnpr(buff, buff_len, "OS error: %s [%d]", safe_strerror(k),
2389 n = scnpr(buff, buff_len, "Sense category: %d", sense_cat);
2391 scnpr(buff + n, buff_len - n, ", try '-v' option for more "
2448 n += scnpr(buff, buff_len, "SPC %s", vnp->name);
2450 n += scnpr(buff, buff_len, "%s", vnp->name);
2452 n += scnpr(buff, buff_len, "%s", sg_sfs_spc_reserved);
2456 n += scnpr(buff, buff_len, "SBC %s", vnp->name);
2458 n += scnpr(buff, buff_len, "%s", vnp->name);
2460 n += scnpr(buff, buff_len, "%s", sg_sfs_sbc_reserved);
2464 n += scnpr(buff, buff_len, "SSC %s", vnp->name);
2466 n += scnpr(buff, buff_len, "%s", vnp->name);
2468 n += scnpr(buff, buff_len, "%s", sg_sfs_ssc_reserved);
2472 n += scnpr(buff, buff_len, "ZBC %s", vnp->name);
2474 n += scnpr(buff, buff_len, "%s", vnp->name);
2476 n += scnpr(buff, buff_len, "%s", sg_sfs_zbc_reserved);
2480 n += scnpr(buff, buff_len, "[unrecognized PDT] %s",
2483 n += scnpr(buff, buff_len, "%s", vnp->name);
2485 n += scnpr(buff, buff_len, "%s", sg_sfs_reserved);
2659 scnpr(safe_errbuf + len, sizeof(safe_errbuf) - len, "%i", errnum);
2714 scnpr(&buff[bpos], blen - bpos, "%.2x", (int)(unsigned char)c);
2732 k = scnpr(buff + 1, blen - 1, "%.2x", a);
2740 scnpr(&buff[bpos], blen - bpos, "%.2x", (int)(unsigned char)c);
2757 k = scnpr(buff + 1, blen - 1, "%.2x", a);
2833 scnpr(buff + bpos, (int)sizeof(buff) - bpos, "%.2x",
2841 n += scnpr(b + n, b_len - n, "%-*s %s\n", prior_ascii_len,
2845 n += scnpr(b + n, b_len - n, "%s\n", buff);
2858 n += scnpr(b + n, b_len - n, "%-*s %s\n", prior_ascii_len,
2861 n += scnpr(b + n, b_len - n, "%s\n", buff);
2970 scnpr(buff + bpos, blen - bpos, "%.4x", (unsigned int)c);
2990 k = scnpr(buff + 1, blen - 1, "%.2x", a);
2998 scnpr(buff + bpos, blen - bpos, "%.4x", (unsigned int)c);
3021 k = scnpr(buff + 1, blen - 1, "%.2x", a);