From a760f95b5dfff7c9c6d33ea6bd422f24425c82cc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 18:35:35 +0900 Subject: [PATCH] system/zmodem/zm_receive.c: Fix a printf format warning --- system/zmodem/zm_receive.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/zmodem/zm_receive.c b/system/zmodem/zm_receive.c index 99bf9630f..0ac61ce44 100644 --- a/system/zmodem/zm_receive.c +++ b/system/zmodem/zm_receive.c @@ -51,6 +51,7 @@ #include #include +#include #include #include #include @@ -1344,7 +1345,8 @@ static int zmr_parsefilename(FAR struct zmr_state_s *pzmr, { /* Create a candidate file name */ - asprintf(&candidate, "%s_%d", pzmr->filename, ++uniqno); + asprintf(&candidate, "%s_%" PRId32, pzmr->filename, + ++uniqno); if (!candidate) { zmdbg("ERROR: Failed to allocate candidate %s_%d\n",