From: Arran Cudbard-Bell Date: Tue, 26 Feb 2019 11:47:18 +0000 (+0800) Subject: Add length to rest_debug_log X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd77bf3c5d76125e01c584cdbccda206ccf23824;p=thirdparty%2Ffreeradius-server.git Add length to rest_debug_log --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index d1409c94e60..9da18c292e4 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -1698,35 +1698,35 @@ static int rest_debug_log(UNUSED CURL *candle, curl_infotype type, char *data, s case CURLINFO_HEADER_IN: if (RDEBUG_ENABLED4) { RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, - "<<< recv - header - %pV", fr_box_strvalue_len(data, len)); + "<<< recv header: %pV", fr_box_strvalue_len(data, len)); } else { - RDEBUG3("<<< recv - header - %pV", fr_box_strvalue_len(data, len)); + RDEBUG3("<<< recv header: %pV", fr_box_strvalue_len(data, len)); } break; case CURLINFO_HEADER_OUT: if (RDEBUG_ENABLED4) { RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, - ">>> send - header - %pV", fr_box_strvalue_len(data, len)); + ">>> send header: %pV", fr_box_strvalue_len(data, len)); } else { - RDEBUG3(">>> send - header - %pV", fr_box_strvalue_len(data, len)); + RDEBUG3(">>> send header: %pV", fr_box_strvalue_len(data, len)); } break; case CURLINFO_DATA_IN: - RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, "<<< recv - data"); + RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, "<<< recv data[length %zu]", len); break; case CURLINFO_DATA_OUT: - RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, ">>> send - data"); + RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, ">>> send data[length %zu]", len); break; case CURLINFO_SSL_DATA_OUT: - RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, ">>> send - ssl-data"); + RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, ">>> send ssl-data[length %zu]", len); break; case CURLINFO_SSL_DATA_IN: - RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, "<<< recv - ssl-data"); + RHEXDUMP(L_DBG_LVL_4, (uint8_t const *)data, len, "<<< recv ssl-data[length %zu]", len); break; default: