diff options
| author | Michael Biebl <biebl@debian.org> | 2023-03-09 20:01:53 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2023-03-09 20:01:53 +0100 |
| commit | cffb548b401e2cd3fad166aa92e0f634bbb1d4d6 (patch) | |
| tree | 6d803d8f7d0d92a1c5e5705974fff8975472af95 /src/nmcli/polkit-agent.c | |
| parent | 647d6b95d5475e0a1bf3d6f299d1cb8c9041a7a4 (diff) | |
| parent | 12e1ee797bbf0b10d1fd5afd4b947484769f2b9f (diff) | |
Merge tag 'debian/1.42.4-1' into debian/bullseye-backports
network-manager Debian release 1.42.4-1
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; |