]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssh: remove fprintf() calls (and uses of __func__)
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Jan 2020 13:00:37 +0000 (14:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Jan 2020 21:10:39 +0000 (22:10 +0100)
lib/vssh/wolfssh.c

index e2daf0c0a2ce73b139bca8fa96321c3b808b4fd1..9e14df3a3cd3d879cc554dc27cb5991ecc4aadeb 100644 (file)
@@ -338,9 +338,9 @@ static int userauth(byte authtype,
 {
   struct connectdata *conn = ctx;
   word32 plen = (word32) strlen(conn->passwd);
-  fprintf(stderr, "wolfssh callback: %s type %s\n", __func__,
-          authtype == WOLFSSH_USERAUTH_PASSWORD ? "PASSWORD" :
-          "PUBLICCKEY");
+  DEBUGF(infof(conn->data, "wolfssh callback: type %s\n",
+               authtype == WOLFSSH_USERAUTH_PASSWORD ? "PASSWORD" :
+               "PUBLICCKEY"));
   authdata->sf.password.password = (byte *)conn->user;
   authdata->sf.password.passwordSz = plen;
 
@@ -898,7 +898,7 @@ static CURLcode wssh_multi_statemach(struct connectdata *conn, bool *done)
     /* if there's no error, it isn't done and it didn't EWOULDBLOCK, then
        try again */
     if(*done) {
-      fprintf(stderr, "%s says DONE\n", __func__);
+      DEBUGF(infof(conn->data, "wssh_statemach_act says DONE\n"));
     }
   } while(!result && !*done && !block);