Klaus Demo nginx / a70d396
compact win32 errno logging Igor Sysoev 13 years ago
2 changed file(s) with 4 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
126126 }
127127
128128 #if (NGX_WIN32)
129
130 if ((unsigned) err >= 0x80000000) {
131 p = ngx_snprintf(p, last - p, " (%Xd: ", err);
132
133 } else {
134 p = ngx_snprintf(p, last - p, " (%d: ", err);
135 }
136
129 p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000)
130 ? " (%d: " : " (%Xd: ", err);
137131 #else
138
139132 p = ngx_snprintf(p, last - p, " (%d: ", err);
140
141133 #endif
142134
143135 p = ngx_strerror_r(err, p, last - p);
3535 *p++ = '.';
3636 }
3737
38 if ((unsigned) err >= 0x80000000) {
39 p = ngx_snprintf(p, last - p, " (%Xd: ", err);
40
41 } else {
42 p = ngx_snprintf(p, last - p, " (%d: ", err);
43 }
44
38 p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000)
39 ? " (%d: " : " (%Xd: ", err);
4540 p = ngx_strerror_r(err, p, last - p);
4641
4742 if (p < last) {