esp-idf/components/esp_system/test_eh_frame_parser/esp_private/panic_internal.h

24 wiersze
472 B
C

/*
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
static inline void panic_print_str(const char* str)
{
/* Ignore "Backtrace:" string. */
if (strcmp(str, "Backtrace:") != 0)
printf("%s", str);
}
static inline void panic_print_hex(const uint32_t value)
{
printf("%x", value);
}