Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed format strings for ngx_win32_version.

Maxim Dounin
June 17, 2021 10:12PM
details: https://hg.nginx.org/nginx/rev/d1079d6b2f19
branches:
changeset: 7874:d1079d6b2f19
user: Maxim Dounin <mdounin@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);
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed format strings for ngx_win32_version.

Maxim Dounin 116 June 17, 2021 10:12PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready