Index: ossp-pkg/cfg/cfg_test.c RCS File: /v/ossp/cvs/ossp-pkg/cfg/cfg_test.c,v rcsdiff -q -kk '-r1.11' '-r1.12' -u '/v/ossp/cvs/ossp-pkg/cfg/cfg_test.c,v' 2>/dev/null --- cfg_test.c 2002/11/18 10:23:36 1.11 +++ cfg_test.c 2002/11/18 10:25:41 1.12 @@ -56,14 +56,16 @@ free(ex_ptr); if (argc == 3) { + fprintf(stdout, "==== selection process ====\n"); if ((rc = cfg_node_select(cfg, NULL, &vec, "%s", argv[2])) != CFG_OK) { cfg_error(cfg, rc, &error); fprintf(stderr, "ERROR: cfg_node_select: %s\n", error); cfg_destroy(cfg); exit(1); } - for (i = 1; vec[i] != NULL; i++) { - fprintf(stdout, "---- selection #%d ----\n", i); + fprintf(stdout, "==== selection results ====\n"); + for (i = 0; vec[i] != NULL; i++) { + fprintf(stdout, "---- selection result #%d ----\n", i); if ((rc = cfg_export(cfg, vec[i], CFG_FMT_CFG, &ex_ptr, 0)) != CFG_OK) { cfg_error(cfg, rc, &error); fprintf(stderr, "ERROR: cfg_export: %s\n", error); @@ -74,6 +76,7 @@ fprintf(stdout, "---- selection #%d ----\n", i); free(ex_ptr); } + fprintf(stdout, "==== selection end ====\n"); } cfg_destroy(cfg);