]> git.kaiwu.me - nginx.git/commitdiff
log offset passed to sendfile()
authorIgor Sysoev <igor@sysoev.ru>
Fri, 4 Sep 2009 09:53:09 +0000 (09:53 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 4 Sep 2009 09:53:09 +0000 (09:53 +0000)
src/os/unix/ngx_freebsd_sendfile_chain.c

index 50d5923dd0a7040aae36c4410210f68f2fe06568..70cdb74950f467ef224faff3dd61d618497e27a8 100644 (file)
@@ -310,8 +310,8 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
                  */
 
                 ngx_log_error(NGX_LOG_ALERT, c->log, 0,
-                              "sendfile() reported that \"%s\" was truncated",
-                              file->file->name.data);
+                         "sendfile() reported that \"%s\" was truncated at %O",
+                         file->file->name.data, file->file_pos);
 
                 return NGX_CHAIN_ERROR;
             }