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 88dde6a..352a185 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 bbc700d..87526bc 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 d7fbd13..2b9fa2d 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)