From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 792EC3857C51; Tue, 18 Jan 2022 10:32:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 792EC3857C51 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: resolver: Format spec consistency for Windows errors X-Act-Checkin: newlib-cygwin X-Git-Author: Anton Lavrentiev via Cygwin-patches X-Git-Refname: refs/heads/master X-Git-Oldrev: 5f40b627091d791fc4988177c4e74191ac8bb628 X-Git-Newrev: 3baaf083242cd314f0fd173a6ea0475a3403a50c Message-Id: <20220118103220.792EC3857C51@sourceware.org> Date: Tue, 18 Jan 2022 10:32:20 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 10:32:20 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D3baaf083242= cd314f0fd173a6ea0475a3403a50c commit 3baaf083242cd314f0fd173a6ea0475a3403a50c Author: Anton Lavrentiev via Cygwin-patches Date: Mon Jan 17 13:03:12 2022 -0500 Cygwin: resolver: Format spec consistency for Windows errors Diff: --- winsup/cygwin/libc/minires-os-if.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minire= s-os-if.c index 6e17de0b8..f71178b96 100644 --- a/winsup/cygwin/libc/minires-os-if.c +++ b/winsup/cygwin/libc/minires-os-if.c @@ -210,7 +210,7 @@ static int cygwin_query(res_state statp, const char * D= omName, int Class, int Ty #define NO_DATA 4 /* Valid name, no data record of requested type */ #endif =20 - DPRINTF(debug, "DnsQuery: %lu (Windows)\n", res); + DPRINTF(debug, "DnsQuery: %u (Windows)\n", res); if (res) { switch (res) { case ERROR_INVALID_NAME: @@ -236,7 +236,7 @@ static int cygwin_query(res_state statp, const char * D= omName, int Class, int Ty statp->res_h_errno =3D NO_DATA; break; default: - DPRINTF(debug, "Unknown code %lu for %s %d\n", res, DomName, Type); + DPRINTF(debug, "Unknown code %u for %s %d\n", res, DomName, Type); statp->res_h_errno =3D NO_RECOVERY; break; } @@ -442,7 +442,7 @@ void get_dns_info(res_state statp) /* First call to get the buffer length we need */ dwRetVal =3D GetNetworkParams((FIXED_INFO *) 0, &ulOutBufLen); if (dwRetVal !=3D ERROR_BUFFER_OVERFLOW) { - DPRINTF(debug, "GetNetworkParams: error %lu (Windows)\n", dwRetVal); + DPRINTF(debug, "GetNetworkParams: error %u (Windows)\n", dwRetVal); goto use_registry; } if ((pFixedInfo =3D (FIXED_INFO *) alloca(ulOutBufLen)) =3D=3D 0) { @@ -450,7 +450,7 @@ void get_dns_info(res_state statp) goto use_registry; } if ((dwRetVal =3D GetNetworkParams(pFixedInfo, & ulOutBufLen))) { - DPRINTF(debug, "GetNetworkParams: error %lu (Windows)\n", dwRetVal); + DPRINTF(debug, "GetNetworkParams: error %u (Windows)\n", dwRetVal); goto use_registry; }