Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
nvme-cli.12152
0023-Fix-print-format-specifier-for-64-bit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0023-Fix-print-format-specifier-for-64-bit.patch of Package nvme-cli.12152
From: Keith Busch <keith.busch@intel.com> Date: Mon, 13 Aug 2018 08:40:51 -0600 Subject: [PATCH] Fix print format specifier for 64-bit References: bsc#1113400 Git-commit: ae304347fc6b7ef99b77cbded0034102ad43b2bd For cross platform compatibility, we use PRI macros instead of hard coding 64-bit specifiers. Signed-off-by: Keith Busch <keith.busch@intel.com> --- nvme-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print.c b/nvme-print.c index 6125662..e0da949 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -1460,7 +1460,7 @@ void show_ana_log(struct nvme_ana_rsp_hdr *ana_log, const char *devname) offset += sizeof(*desc); printf("grpid : %u\n", le32_to_cpu(desc->grpid)); printf("nnsids : %u\n", le32_to_cpu(desc->nnsids)); - printf("chgcnt : %llu\n", le64_to_cpu(desc->chgcnt)); + printf("chgcnt : %"PRIu64"\n", le64_to_cpu(desc->chgcnt)); printf("state : %s\n", nvme_ana_state_to_string(desc->state)); for (j = 0; j < le32_to_cpu(desc->nnsids); j++) -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor