summary refs log tree commit diff
path: root/src/nmcli/general.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nmcli/general.c')
-rw-r--r--src/nmcli/general.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmcli/general.c b/src/nmcli/general.c
index c6c266a2..2e9aad44 100644
--- a/src/nmcli/general.c
+++ b/src/nmcli/general.c
@@ -933,7 +933,7 @@ do_general_hostname(const NMCCommand *cmd, NmCli *nmc, int argc, const char *con
 
     hostname = *argv;
     if (next_arg(nmc, &argc, &argv, NULL) == 0)
-        nmc_print("Warning: ignoring extra garbage after '%s' hostname\n", hostname);
+        nmc_printerr("Warning: ignoring extra garbage after '%s' hostname\n", hostname);
 
     nmc->should_wait++;
     nm_client_save_hostname_async(nmc->client, hostname, NULL, save_hostname_cb, nmc);