nvmecontrol: Pass 1 to uint8_t arg

The rae arg is uint8_t (which we then shift over to the right bit. Pass
'1' instead of 'true' here to match the interface. While true is
promoted to (uint8_t)1, we don't use it as a bool in read_logpage().

Fixes:			5322eec86ae4 ("nvmecontrol: Always set the RAE bit on telemetry-log requests")
Sponsored by:		Netflix
Reviewed by:		chs
Differential Revision:	https://reviews.freebsd.org/D55060
This commit is contained in:
Warner Losh
2026-02-03 10:34:36 -07:00
parent a4f0e93c51
commit cbb7441245
+2 -2
View File
@@ -139,7 +139,7 @@ telemetry_log(const struct cmd *f, int argc, char *argv[])
/* Read the log page */
size = sizeof(tlp);
off = 0;
read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, true,
read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 1,
off, 0, 0, 0, &tlp, size);
switch(opt.da) {
case 1:
@@ -171,7 +171,7 @@ telemetry_log(const struct cmd *f, int argc, char *argv[])
(unsigned long long)blocks);
fflush(stdout);
}
read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, true,
read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 1,
off, 0, 0, 0, &buf, chunk);
if (write(fdout, &buf, chunk) != chunk)
err(EX_IOERR, "Error writing %s", opt.outfn);