]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
swanctl: log errors to stderr
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 24 Apr 2016 21:33:23 +0000 (23:33 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 24 Apr 2016 21:33:23 +0000 (23:33 +0200)
src/swanctl/commands/load_authorities.c
src/swanctl/commands/load_conns.c
src/swanctl/commands/load_pools.c

index 88dde6aafaa5c81b57011bbc3ccd053d886b3d84..352a185e8e366286338cd977a7b05357152fa416 100644 (file)
@@ -292,7 +292,7 @@ int load_authorities_cfg(vici_conn_t *conn, command_format_options_t format,
        }
        if (found == 0)
        {
-               printf("no authorities found, %u unloaded\n", unloaded);
+               fprintf(stderr, "no authorities found, %u unloaded\n", unloaded);
                return 0;
        }
        if (loaded == found)
index bbc700d5cd8b5823f747d8ea3001478e157c2e72..87526bc79ed2f82c90b2e04ecfad13924aa57958 100644 (file)
@@ -396,7 +396,7 @@ int load_conns_cfg(vici_conn_t *conn, command_format_options_t format,
        }
        if (found == 0)
        {
-               printf("no connections found, %u unloaded\n", unloaded);
+               fprintf(stderr, "no connections found, %u unloaded\n", unloaded);
                return 0;
        }
        if (loaded == found)
index d7fbd13414c84f3cfe3aecab89993448723448d9..2b9fa2d42fedad98ab8dbfdd31c0542ea8e36d0b 100644 (file)
@@ -235,7 +235,7 @@ int load_pools_cfg(vici_conn_t *conn, command_format_options_t format,
        }
        if (found == 0)
        {
-               printf("no pools found, %u unloaded\n", unloaded);
+               fprintf(stderr, "no pools found, %u unloaded\n", unloaded);
                return 0;
        }
        if (loaded == found)