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/nmcli.c | |
| parent | 40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff) | |
New upstream version 1.42.0 upstream/1.42.0
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); |