]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: correct wget_connected debug messages
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 8 Oct 2024 23:02:05 +0000 (01:02 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 17:38:44 +0000 (11:38 -0600)
* Remove duplicate debug message in wget_connected()
* Correct typo 'Connctd'

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
net/wget.c

index c9b8fc9109cdbbe8c9df9ab822de3fe64e418133..635f82efbb308c365f5e85e32579798dd5986d39 100644 (file)
@@ -248,7 +248,7 @@ static void wget_connected(uchar *pkt, unsigned int tcp_seq_num,
                        wget_send(action, tcp_seq_num, tcp_ack_num, len);
                } else {
                        debug_cond(DEBUG_WGET,
-                                  "wget: Connctd pkt %p  hlen %x\n",
+                                  "wget: Connected Pkt %p hlen %x\n",
                                   pkt, hlen);
 
                        pos = strstr((char *)pkt, content_len);
@@ -273,10 +273,6 @@ static void wget_connected(uchar *pkt, unsigned int tcp_seq_num,
                                }
                        }
 
-                       debug_cond(DEBUG_WGET,
-                                  "wget: Connected Pkt %p hlen %x\n",
-                                  pkt, hlen);
-
                        for (i = 0; i < pkt_q_idx; i++) {
                                int err;
 
@@ -288,7 +284,7 @@ static void wget_connected(uchar *pkt, unsigned int tcp_seq_num,
                                          pkt_q[i].len);
                                unmap_sysmem(ptr1);
                                debug_cond(DEBUG_WGET,
-                                          "wget: Connctd pkt Q %p len %x\n",
+                                          "wget: Conncted pkt Q %p len %x\n",
                                           pkt_q[i].pkt, pkt_q[i].len);
                                if (err) {
                                        wget_loop_state = NETLOOP_FAIL;