Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2021 22:39:16 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a82f07fc2e24 - main - Fix 32-bit build post 6733401935f83754b4b2744bc3d33ef84b1271e0
Message-ID:  <202101082239.108MdGDR068970@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=a82f07fc2e2456b0ddc847d611f56a3152a6f940

commit a82f07fc2e2456b0ddc847d611f56a3152a6f940
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-01-08 22:38:21 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-01-08 22:38:30 +0000

    Fix 32-bit build post 6733401935f83754b4b2744bc3d33ef84b1271e0
    
    The general style in sbin/nvmecontrol apppears to print uint64_t types
    using %j, so I'm using that instead of the more general (but admittedly
    ugly) PRIu64.
---
 sbin/nvmecontrol/logpage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c
index f00d5d94897b..7daf012499a2 100644
--- a/sbin/nvmecontrol/logpage.c
+++ b/sbin/nvmecontrol/logpage.c
@@ -678,7 +678,7 @@ print_log_self_test_status(const struct nvme_controller_data *cdata __unused,
 		if (dst->result[r].valid_diag_info & BIT(1)) {
 			memcpy(&failing_lba, dst->result[r].failing_lba,
 			    sizeof(failing_lba));
-			printf(" FLBA=0x%lx", failing_lba);
+			printf(" FLBA=0x%jx", failing_lba);
 		}
 		if (dst->result[r].valid_diag_info & BIT(2))
 			printf(" SCT=0x%x", dst->result[r].status_code_type);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101082239.108MdGDR068970>