diff options
| author | Michael Biebl <biebl@debian.org> | 2023-02-10 11:50:34 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2023-02-10 11:50:34 +0100 |
| commit | 1372848511cb896b80b51ed1a3e9606bd9816631 (patch) | |
| tree | 674792b9385bdef935988894b45f06b2af39f88c /src/nmcli/polkit-agent.c | |
| parent | 40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff) | |
New upstream version 1.42.0 upstream/1.42.0
Diffstat (limited to 'src/nmcli/polkit-agent.c')
| -rw-r--r-- | src/nmcli/polkit-agent.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nmcli/polkit-agent.c b/src/nmcli/polkit-agent.c index 41567023..8b74b338 100644 --- a/src/nmcli/polkit-agent.c +++ b/src/nmcli/polkit-agent.c @@ -13,6 +13,7 @@ #include "libnmc-base/nm-polkit-listener.h" #include "common.h" +#include "utils.h" static char * polkit_read_passwd(gpointer instance, @@ -23,8 +24,8 @@ polkit_read_passwd(gpointer instance, { NmCli *nmc = user_data; - g_print("%s\n", message); - g_print("(action_id: %s)\n", action_id); + nmc_print("%s\n", message); + nmc_print("(action_id: %s)\n", action_id); /* Ask user for polkit authorization password */ if (user) { @@ -36,7 +37,7 @@ polkit_read_passwd(gpointer instance, static void polkit_error(gpointer instance, const char *error, gpointer user_data) { - g_printerr(_("Error: polkit agent failed: %s\n"), error); + nmc_printerr(_("Error: polkit agent failed: %s\n"), error); } gboolean @@ -89,7 +90,7 @@ nmc_start_polkit_agent_start_try(NmCli *nmc) return TRUE; if (!nmc_polkit_agent_init(nmc, FALSE, &error)) { - g_printerr(_("Warning: polkit agent initialization failed: %s\n"), error->message); + nmc_printerr(_("Warning: polkit agent initialization failed: %s\n"), error->message); return FALSE; } return TRUE; |