linux/esptun.c
static void debug_response(const uint8_t *esp_buffer, size_t n) {
    static const char hexchars[16] = "0123456789abcdef";
    if (debug) {
        for (size_t i = 0; i < n; ++i) {
            if (esp_buffer[i] < 32 || esp_buffer[i] >= 127 || esp_buffer[i] == '\\') {
                fputc('\\', stderr);
                fputc('x', stderr);
                fputc(hexchars[esp_buffer[i] >> 4], stderr);
                fputc(hexchars[esp_buffer[i] & 0xf], stderr);
            } else {
                fputc(esp_buffer[i], stderr);
            }
        }
    }
}
/**
 * Log a raw response for debugging.
 */
Log a raw response for debugging.
Log a raw response for debugging .
static void debug_response(const uint8_t *esp_buffer, size_t n) {
    static const char hexchars[16] = "0123456789abcdef";
    if (debug) {
        for (size_t i = 0; i < n; ++i) {
            if (esp_buffer[i] < 32 || esp_buffer[i] >= 127 || esp_buffer[i] == '\\') {
                fputc('\\', stderr);
                fputc('x', stderr);
                fputc(hexchars[esp_buffer[i] >> 4], stderr);
                fputc(hexchars[esp_buffer[i] & 0xf], stderr);
            } else {
                fputc(esp_buffer[i], stderr);
            }
        }
    }
}
static void debug_response ( const uint8_t * esp_buffer , size_t n ) { static const char hexchars [ 16 ] = " " ; if ( debug ) { for ( size_t i = 0 ; i < n ; ++ i ) { if ( esp_buffer [ i ] < 32 || esp_buffer [ i ] >= 127 || esp_buffer [ i ] == ' \\ ' ) { fputc ( ' \\ ' , stderr ) ; fputc ( ' ' , stderr ) ; fputc ( hexchars [ esp_buffer [ i ] >> 4 ] , stderr ) ; fputc ( hexchars [ esp_buffer [ i ] & 0xf ] , stderr ) ; } else { fputc ( esp_buffer [ i ] , stderr ) ; } } } }
Log a raw response for debugging.
Log a raw response for debugging .