comparison src/core/ngx_file.c @ 6480:f01ab2dbcfdc

Fixed logging.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 31 Mar 2016 02:33:57 +0300
parents 2cd019520210
children 8bf484eef9ab
comparison
equal deleted inserted replaced
6479:dc92298b1852 6480:f01ab2dbcfdc
839 goto failed; 839 goto failed;
840 } 840 }
841 841
842 if ((size_t) n != len) { 842 if ((size_t) n != len) {
843 ngx_log_error(NGX_LOG_ALERT, cf->log, 0, 843 ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
844 ngx_read_fd_n " has read only %z of %uz from %s", 844 ngx_read_fd_n " has read only %z of %O from %s",
845 n, size, from); 845 n, size, from);
846 goto failed; 846 goto failed;
847 } 847 }
848 848
849 n = ngx_write_fd(nfd, buf, len); 849 n = ngx_write_fd(nfd, buf, len);
854 goto failed; 854 goto failed;
855 } 855 }
856 856
857 if ((size_t) n != len) { 857 if ((size_t) n != len) {
858 ngx_log_error(NGX_LOG_ALERT, cf->log, 0, 858 ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
859 ngx_write_fd_n " has written only %z of %uz to %s", 859 ngx_write_fd_n " has written only %z of %O to %s",
860 n, size, to); 860 n, size, to);
861 goto failed; 861 goto failed;
862 } 862 }
863 863
864 size -= n; 864 size -= n;