[nginx] Fixed format strings for ngx_win32_version.

Maxim Dounin mdounin at mdounin.ru
Fri Jun 18 02:11:58 UTC 2021


details:   https://hg.nginx.org/nginx/rev/d1079d6b2f19
branches:  
changeset: 7874:d1079d6b2f19
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Jun 18 04:00:21 2021 +0300
description:
Fixed format strings for ngx_win32_version.

diffstat:

 src/os/win32/ngx_win32_init.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 0302a4f0b6c4 -r d1079d6b2f19 src/os/win32/ngx_win32_init.c
--- a/src/os/win32/ngx_win32_init.c	Thu Jun 17 11:44:06 2021 +0300
+++ b/src/os/win32/ngx_win32_init.c	Fri Jun 18 04:00:21 2021 +0300
@@ -295,7 +295,7 @@ ngx_os_status(ngx_log_t *log)
         osviex_stub = (ngx_osviex_stub_t *) &osvi.wServicePackMinor;
 
         ngx_log_error(NGX_LOG_INFO, log, 0,
-                      "OS: %ud build:%ud, \"%s\", suite:%Xd, type:%ud",
+                      "OS: %ui build:%ud, \"%s\", suite:%Xd, type:%ud",
                       ngx_win32_version, osvi.dwBuildNumber, osvi.szCSDVersion,
                       osviex_stub->wSuiteMask, osviex_stub->wProductType);
 
@@ -305,7 +305,7 @@ ngx_os_status(ngx_log_t *log)
             /* Win9x build */
 
             ngx_log_error(NGX_LOG_INFO, log, 0,
-                          "OS: %u build:%ud.%ud.%ud, \"%s\"",
+                          "OS: %ui build:%ud.%ud.%ud, \"%s\"",
                           ngx_win32_version,
                           osvi.dwBuildNumber >> 24,
                           (osvi.dwBuildNumber >> 16) & 0xff,
@@ -321,7 +321,7 @@ ngx_os_status(ngx_log_t *log)
              * and we do not support VER_PLATFORM_WIN32s at all
              */
 
-            ngx_log_error(NGX_LOG_INFO, log, 0, "OS: %ud build:%ud, \"%s\"",
+            ngx_log_error(NGX_LOG_INFO, log, 0, "OS: %ui build:%ud, \"%s\"",
                           ngx_win32_version, osvi.dwBuildNumber,
                           osvi.szCSDVersion);
         }


More information about the nginx-devel mailing list