comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 3081:10bfdd8d5eb9

log offset passed to sendfile()
author Igor Sysoev <igor@sysoev.ru>
date Fri, 04 Sep 2009 09:53:09 +0000
parents af427e13cfd7
children 59b99f217c6d
comparison
equal deleted inserted replaced
3080:af427e13cfd7 3081:10bfdd8d5eb9
308 * has truncated the file, so the offset became beyond 308 * has truncated the file, so the offset became beyond
309 * the end of the file 309 * the end of the file
310 */ 310 */
311 311
312 ngx_log_error(NGX_LOG_ALERT, c->log, 0, 312 ngx_log_error(NGX_LOG_ALERT, c->log, 0,
313 "sendfile() reported that \"%s\" was truncated", 313 "sendfile() reported that \"%s\" was truncated at %O",
314 file->file->name.data); 314 file->file->name.data, file->file_pos);
315 315
316 return NGX_CHAIN_ERROR; 316 return NGX_CHAIN_ERROR;
317 } 317 }
318 318
319 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0, 319 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0,