While doing some other development I found it useful to print log messages in hex format.
The attached patch allows output of a string buffer in hex format using the format %X*s.
An example is:
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, log, 0, "Buffer in hex is %X*s", sizeof(buffer), buffer);
The existing %*s format still works.
--
Daniel Black_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel