summaryrefslogtreecommitdiffstats
path: root/examples/display-tree.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-26 05:25:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-26 05:34:52 +0000
commit9ecff41dd11e920286f9be670a0ec3a668371d1d (patch)
tree89c73ab6742847ca5f12056e6c0dd4ec6bbe79d0 /examples/display-tree.c
parentAdding debian version 1.0-1. (diff)
downloadlibnvme-9ecff41dd11e920286f9be670a0ec3a668371d1d.tar.xz
libnvme-9ecff41dd11e920286f9be670a0ec3a668371d1d.zip
Merging upstream version 1.1~rc0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/display-tree.c')
-rw-r--r--examples/display-tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/display-tree.c b/examples/display-tree.c
index f5bddb2..b9ea75f 100644
--- a/examples/display-tree.c
+++ b/examples/display-tree.c
@@ -11,6 +11,7 @@
* selected attributes for each component.
*/
#include <stdio.h>
+#include <inttypes.h>
#include <libnvme.h>
int main()
@@ -34,7 +35,7 @@ int main()
nvme_subsystem_get_nqn(s));
nvme_subsystem_for_each_ns_safe(s, n, _n) {
- printf("%c |-- %s lba size:%d lba max:%lu\n",
+ printf("%c |-- %s lba size:%d lba max:%" PRIu64 "\n",
_s ? '|' : ' ',
nvme_ns_get_name(n),
nvme_ns_get_lba_size(n),
@@ -50,7 +51,7 @@ int main()
nvme_ctrl_get_state(c));
nvme_ctrl_for_each_ns_safe(c, n, _n)
- printf("%c %c %c-- %s lba size:%d lba max:%lu\n",
+ printf("%c %c %c-- %s lba size:%d lba max:%" PRIu64 "\n",
_s ? '|' : ' ', _c ? '|' : ' ',
_n ? '|' : '`',
nvme_ns_get_name(n),