diff cli-runopts.c @ 1213:7fd1211a1f63

Use dropbear_log instead of some fprintf's in client code.
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Tue, 01 Dec 2015 21:56:11 +0300
parents bf626d259eb1
children d058e15ea213
line wrap: on
line diff
--- a/cli-runopts.c	Tue Dec 01 21:55:34 2015 +0300
+++ b/cli-runopts.c	Tue Dec 01 21:56:11 2015 +0300
@@ -491,7 +491,7 @@
 	keytype = DROPBEAR_SIGNKEY_ANY;
 	if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) {
 		if (warnfail) {
-			fprintf(stderr, "Failed loading keyfile '%s'\n", filename);
+			dropbear_log(LOG_WARNING, "Failed loading keyfile '%s'\n", filename);
 		}
 		sign_key_free(key);
 	} else {