Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_gui.c @ 2389:ad08367a257b
compact win32 errno logging
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 09 Dec 2008 17:41:17 +0000 |
parents | 9b8c906f6e63 |
children |
comparison
equal
deleted
inserted
replaced
2388:722b5aff05ae | 2389:ad08367a257b |
---|---|
34 *p++ = '.'; | 34 *p++ = '.'; |
35 *p++ = '.'; | 35 *p++ = '.'; |
36 *p++ = '.'; | 36 *p++ = '.'; |
37 } | 37 } |
38 | 38 |
39 if ((unsigned) err >= 0x80000000) { | 39 p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000) |
40 p = ngx_snprintf(p, last - p, " (%Xd: ", err); | 40 ? " (%d: " : " (%Xd: ", err); |
41 | |
42 } else { | |
43 p = ngx_snprintf(p, last - p, " (%d: ", err); | |
44 } | |
45 | |
46 p = ngx_strerror_r(err, p, last - p); | 41 p = ngx_strerror_r(err, p, last - p); |
47 | 42 |
48 if (p < last) { | 43 if (p < last) { |
49 *p++ = ')'; | 44 *p++ = ')'; |
50 } | 45 } |