From: Karel Zak Date: Fri, 18 Sep 2009 11:21:19 +0000 (+0200) Subject: libblkid: cosmetic change in topology sample X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77082c5a7b08998f11cb8cbec940a589ba2fb0a0;p=util-linux libblkid: cosmetic change in topology sample Signed-off-by: Karel Zak --- 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; }