debug: coredump: Move COREDUMP_*_STR strings to the public header
This allows a customized coredump_backend_other API to re-use the COREDUMP_*_STR without re-defining the same strings. Signed-off-by: Younghyun Park <younghyunpark@google.com>
This commit is contained in:
parent
2d665c1c14
commit
ea29ef36bb
2 changed files with 13 additions and 10 deletions
|
@ -11,6 +11,19 @@
|
|||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
/*
|
||||
* Define COREDUMP_*_STR as public to allow coredump_backend_other to re-use
|
||||
* these strings if necessary
|
||||
*/
|
||||
#define COREDUMP_BEGIN_STR "BEGIN#"
|
||||
#define COREDUMP_END_STR "END#"
|
||||
#define COREDUMP_ERROR_STR "ERROR CANNOT DUMP#"
|
||||
|
||||
/*
|
||||
* Need to prefix coredump strings to make it easier to parse
|
||||
* as log module adds its own prefixes.
|
||||
*/
|
||||
#define COREDUMP_PREFIX_STR "#CD:"
|
||||
|
||||
/**
|
||||
* @file
|
||||
|
|
|
@ -16,16 +16,6 @@
|
|||
* public documentation.
|
||||
*/
|
||||
|
||||
#define COREDUMP_BEGIN_STR "BEGIN#"
|
||||
#define COREDUMP_END_STR "END#"
|
||||
#define COREDUMP_ERROR_STR "ERROR CANNOT DUMP#"
|
||||
|
||||
/*
|
||||
* Need to prefix coredump strings to make it easier to parse
|
||||
* as log module adds its own prefixes.
|
||||
*/
|
||||
#define COREDUMP_PREFIX_STR "#CD:"
|
||||
|
||||
struct z_coredump_memory_region_t {
|
||||
uintptr_t start;
|
||||
uintptr_t end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue