Skip to content

Commit 0b856bd

Browse files
committed
style: did some minor changes
1 parent 8a629f4 commit 0b856bd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ngx_http_zstd_filter_module.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ ngx_http_zstd_filter_compress(ngx_http_request_t *r, ngx_http_zstd_ctx_t *ctx)
390390

391391
ngx_log_debug8(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
392392
"zstd compress in: src:%p pos:%ud size: %ud, "
393-
"dst: %p pos:%ud size:%ud flush:%d redo:%d",
393+
"dst:%p pos:%ud size:%ud flush:%d redo:%d",
394394
ctx->buffer_in.src, ctx->buffer_in.pos, ctx->buffer_in.size,
395-
ctx->buffer_out.src, ctx->buffer_out.pos,
395+
ctx->buffer_out.dst, ctx->buffer_out.pos,
396396
ctx->buffer_out.size, ctx->flush, ctx->redo);
397397

398398
pos = ctx->buffer_out.pos;
@@ -427,7 +427,7 @@ ngx_http_zstd_filter_compress(ngx_http_request_t *r, ngx_http_zstd_ctx_t *ctx)
427427
"zstd compress out: src:%p pos:%ud size: %ud, "
428428
"dst:%p pos:%ud size:%ud",
429429
ctx->buffer_in.src, ctx->buffer_in.pos, ctx->buffer_in.size,
430-
ctx->buffer_out.src, ctx->buffer_out.pos,
430+
ctx->buffer_out.dst, ctx->buffer_out.pos,
431431
ctx->buffer_out.size);
432432

433433
ctx->out_buf->last += ctx->buffer_out.pos - pos;
@@ -791,16 +791,16 @@ ngx_http_zstd_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
791791

792792
if (fd == NGX_INVALID_FILE) {
793793
ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
794-
ngx_open_file_n "\"%V\" failed",
795-
zmcf->dict_file);
794+
ngx_open_file_n " \"%V\" failed",
795+
&zmcf->dict_file);
796796

797797
return NGX_CONF_ERROR;
798798
}
799799

800800
if (ngx_fd_info(fd, &info) == NGX_FILE_ERROR) {
801801
ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
802-
ngx_fd_info_n "\"%V\" failed",
803-
zmcf->dict_file);
802+
ngx_fd_info_n " \"%V\" failed",
803+
&zmcf->dict_file);
804804

805805
rc = NGX_CONF_ERROR;
806806
goto close;
@@ -816,16 +816,16 @@ ngx_http_zstd_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
816816
n = ngx_read_fd(fd, (void *) buf, size);
817817
if (n < 0) {
818818
ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
819-
ngx_read_fd_n "%V\" failed",
820-
zmcf->dict_file);
819+
ngx_read_fd_n " %V\" failed",
820+
&zmcf->dict_file);
821821

822822
rc = NGX_CONF_ERROR;
823823
goto close;
824824

825825
} else if ((size_t) n != size) {
826826
ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
827827
ngx_read_fd_n "\"%V incomplete\"",
828-
zmcf->dict_file);
828+
&zmcf->dict_file);
829829

830830
rc = NGX_CONF_ERROR;
831831
goto close;
@@ -845,8 +845,8 @@ ngx_http_zstd_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
845845

846846
if (fd != NGX_INVALID_FILE && ngx_close_file(fd) == NGX_FILE_ERROR) {
847847
ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
848-
ngx_close_file_n "\"%s\" failed",
849-
zmcf->dict_file.data);
848+
ngx_close_file_n " \"%V\" failed",
849+
&zmcf->dict_file);
850850

851851
rc = NGX_CONF_ERROR;
852852
}

0 commit comments

Comments
 (0)