You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/25 02:44:40 UTC

[incubator-nuttx-apps] 07/07: netutils/tftpc/tftpc_put.c: Fix syslog formats

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 72d9b34fb13958b5798a180f815257446f57f597
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 07:36:46 2020 +0900

    netutils/tftpc/tftpc_put.c: Fix syslog formats
---
 netutils/tftpc/tftpc_put.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/netutils/tftpc/tftpc_put.c b/netutils/tftpc/tftpc_put.c
index bbd190a..d3be5f7 100644
--- a/netutils/tftpc/tftpc_put.c
+++ b/netutils/tftpc/tftpc_put.c
@@ -165,11 +165,11 @@ static int tftp_rcvack(int sd, FAR uint8_t *packet,
 
               if (nbytes == 0)
                 {
-                  nerr("ERROR: Connection lost: %d bytes\n", nbytes);
+                  nerr("ERROR: Connection lost: %zd bytes\n", nbytes);
                 }
               else if (nbytes > 0)
                 {
-                  nerr("ERROR: Short packet: %d bytes\n", nbytes);
+                  nerr("ERROR: Short packet: %zd bytes\n", nbytes);
                 }
               else
                 {