aboutsummaryrefslogtreecommitdiff
path: root/src/sg_vpd.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2020-03-01 01:29:31 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2020-03-01 01:29:31 +0000
commit6dacefb0646d90cb10dc2bd4aaca22302ac13d81 (patch)
treeccae7277bf41756da8ffc4550b4b082276904893 /src/sg_vpd.c
parent76b39a024cd642d677bda6da434f6f73cc80319e (diff)
downloadsg3_utils-6dacefb0646d90cb10dc2bd4aaca22302ac13d81.tar.gz
Rename VPD_ZBC_DEV_CHARS from zbdc to zbdch, to distinguish it from zbdct for the ZBC device control mpage; sgh_dd work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@843 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_vpd.c')
-rw-r--r--src/sg_vpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sg_vpd.c b/src/sg_vpd.c
index b91261af..72403aca 100644
--- a/src/sg_vpd.c
+++ b/src/sg_vpd.c
@@ -40,7 +40,7 @@
*/
-static const char * version_str = "1.57 20200123"; /* spc6r01 + sbc4r18 */
+static const char * version_str = "1.58 20200223"; /* spc6r01 + sbc4r18 */
/* standard VPD pages, in ascending page number order */
#define VPD_SUPPORTED_VPDS 0x0
@@ -241,7 +241,7 @@ static struct svpd_values_name_t standard_vpd_pg[] = {
{VPD_SUPPORTED_VPDS, 0, -1, "sv", "Supported VPD pages"},
{VPD_TA_SUPPORTED, 0, 1, "tas", "TapeAlert supported flags (SSC)"},
{VPD_3PARTY_COPY, 0, -1, "tpc", "Third party copy"},
- {VPD_ZBC_DEV_CHARS, 0, -1, "zbdc", "Zoned block device characteristics"},
+ {VPD_ZBC_DEV_CHARS, 0, -1, "zbdch", "Zoned block device characteristics"},
/* Use pdt of -1 since this page both for pdt=0 and pdt=0x14 */
{0, 0, 0, NULL, NULL},
};
@@ -2530,7 +2530,7 @@ decode_b5_vpd(uint8_t * b, int len, int do_hex, int pdt)
/* VPD_ZBC_DEV_CHARS 0xb6 sbc or zbc [zbc2r04] */
static void
-decode_zbdc_vpd(uint8_t * b, int len, int do_hex)
+decode_zbdch_vpd(uint8_t * b, int len, int do_hex)
{
uint32_t u;
@@ -3382,7 +3382,7 @@ svpd_decode_t10(int sg_fd, struct opts_t * op, int subvalue, int off,
printf(" [PQual=%d Peripheral device type: %s]\n",
(rp[0] & 0xe0) >> 5,
sg_get_pdt_str(pdt, sizeof(b), b));
- decode_zbdc_vpd(rp, len, op->do_hex);
+ decode_zbdch_vpd(rp, len, op->do_hex);
}
return 0;
} else if ((! op->do_raw) && (! op->do_quiet) && (op->do_hex < 3) &&