CLEANUP: log: adjust _lf_cbor_encode_byte() comment
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 1 Apr 2025 17:32:58 +0000 (19:32 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 15 Apr 2025 20:27:00 +0000 (22:27 +0200)
_lf_cbor_encode_byte() comment was not updated in c33b857df ("MINOR: log:
support true cbor binary encoding") to reflect the new behavior.

Indeed, binary form is now supported. Updating the comment that says
otherwise.

(cherry picked from commit ce6951d6f9259f778c0271da54a615c892184691)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
(cherry picked from commit 3a715a4d6d2e8554015eac5d59c059275bc4c6e6)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>

src/log.c

index 3cbbabf..734621d 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -1879,8 +1879,6 @@ static char *_encode_byte_hex(char *start, char *stop, unsigned char byte)
 
 /* lf cbor function ptr used to encode a single byte according to RFC8949
  *
- * for now only hex form is supported.
- *
  * The function may only be called under CBOR context (that is when
  * LOG_OPT_ENCODE_CBOR option is set).
  *