traeak opened a new pull request #7797:
URL: https://github.com/apache/trafficserver/pull/7797


   This fixes debug formatting error:
   ```
   HTTP.cc: In function ‘void http_hdr_describe(HdrHeapObjImpl*, bool)’:
   HTTP.cc:544:19: error: format ‘%x’ expects argument of type ‘unsigned int’, 
but argument 6 has type ‘HTTPVersion’ [-Werror=format=]
     544 |     Debug("http", "[TYPE: REQ, V: %04x, URL: %p, METHOD: \"%.*s\", 
METHOD_LEN: %d, FIELDS: %p]", obj->m_version,
         |                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
~~~~~~~~~~~~~~
   ```
   
   by changing from obj->m_version to obj->m_version.get_flat_version()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to