From 77082c5a7b08998f11cb8cbec940a589ba2fb0a0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Sep 2009 13:21:19 +0200 Subject: [PATCH] libblkid: cosmetic change in topology sample Signed-off-by: Karel Zak --- shlibs/blkid/samples/topology.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/shlibs/blkid/samples/topology.c b/shlibs/blkid/samples/topology.c index 7e5b489d..665281cd 100644 --- a/shlibs/blkid/samples/topology.c +++ b/shlibs/blkid/samples/topology.c @@ -47,6 +47,20 @@ int main(int argc, char *argv[]) if (blkid_probe_set_device(pr, fd, 0, 0) != 0) err(EXIT_FAILURE, "failed to assign device to libblkid probe"); + /* + * Binary interface + */ + tp = blkid_probe_get_topology(pr); + if (tp) { + printf("----- binary interface:\n"); + printf("\talignment offset : %lu\n", + blkid_topology_get_alignment_offset(tp)); + printf("\tminimum io size : %lu\n", + blkid_topology_get_minimum_io_size(tp)); + printf("\toptimal io size : %lu\n", + blkid_topology_get_optimal_io_size(tp)); + } + /* * NAME=value interface */ @@ -75,19 +89,6 @@ int main(int argc, char *argv[]) } } - /* - * Binary interface - */ - tp = blkid_probe_get_topology(pr); - if (tp) { - printf("----- binary interface:\n"); - printf("alignment offset : %lu\n", - blkid_topology_get_alignment_offset(tp)); - printf("minimum io size : %lu\n", - blkid_topology_get_minimum_io_size(tp)); - printf("optimal io size : %lu\n", - blkid_topology_get_optimal_io_size(tp)); - } return EXIT_SUCCESS; } -- 2.39.5