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/nmcli.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/nmcli.c')
| -rw-r--r-- | src/nmcli/nmcli.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nmcli/nmcli.c b/src/nmcli/nmcli.c index bc37a7f0..ff496874 100644 --- a/src/nmcli/nmcli.c +++ b/src/nmcli/nmcli.c @@ -166,13 +166,13 @@ complete_one(gpointer key, gpointer value, gpointer user_data) /* value prefix was not a standalone argument, * it was part of --option=<value> argument. * Repeat the part leading to "=". */ - g_print("%s=", option); + nmc_print("%s=", option); } - g_print("%.*s%s%s\n", - (int) (last - prefix), - prefix, - name, - strcmp(last, name) == 0 ? "," : ""); + nmc_print("%.*s%s%s\n", + (int) (last - prefix), + prefix, + name, + strcmp(last, name) == 0 ? "," : ""); } } @@ -228,9 +228,9 @@ complete_option_with_value(const char *option, const char *prefix, ...) /* value prefix was not a standalone argument, * it was part of --option=<value> argument. * Repeat the part leading to "=". */ - g_print("%s=", option); + nmc_print("%s=", option); } - g_print("%s\n", candidate); + nmc_print("%s\n", candidate); } } va_end(args); @@ -239,7 +239,7 @@ complete_option_with_value(const char *option, const char *prefix, ...) static void usage(void) { - g_printerr(_( + nmc_printerr(_( "Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }\n" "\n" "OPTIONS\n" @@ -889,7 +889,7 @@ process_command_line(NmCli *nmc, int argc, char **argv_orig) nmc->timeout = (int) timeout; } else if (matches_arg(nmc, &argc, &argv, "-version", NULL)) { if (!nmc->complete) - g_print(_("nmcli tool, version %s\n"), NMCLI_VERSION); + nmc_print(_("nmcli tool, version %s\n"), NMCLI_VERSION); return NMC_RESULT_SUCCESS; } else if (matches_arg(nmc, &argc, &argv, "-help", NULL)) { if (!nmc->complete) @@ -1047,7 +1047,7 @@ main(int argc, char *argv[]) nm_cli.return_value = NMC_RESULT_SUCCESS; } else if (nm_cli.return_value != NMC_RESULT_SUCCESS) { /* Print result descripting text */ - g_printerr("%s\n", nm_cli.return_text->str); + nmc_printerr("%s\n", nm_cli.return_text->str); } nmc_cleanup(&nm_cli); |