Zephyr Project API  3.1.0
A Scalable Open Source RTOS
Package flags.

Macros

#define CBPRINTF_PACKAGE_COPY_RO_STR   BIT(0)
 Append read-only strings from source package to destination package. More...
 
#define CBPRINTF_PACKAGE_COPY_RW_STR   BIT(1)
 Append read-write strings from source package to destination package. More...
 
#define CBPRINTF_PACKAGE_COPY_KEEP_RO_STR   BIT(2)
 Keep read-only location indexes in the package. More...
 

Detailed Description

Macro Definition Documentation

◆ CBPRINTF_PACKAGE_COPY_KEEP_RO_STR

#define CBPRINTF_PACKAGE_COPY_KEEP_RO_STR   BIT(2)

#include <include/zephyr/sys/cbprintf.h>

Keep read-only location indexes in the package.

If it is set read-only string pointers are kept in the package after copy. If not set they are discarded.

◆ CBPRINTF_PACKAGE_COPY_RO_STR

#define CBPRINTF_PACKAGE_COPY_RO_STR   BIT(0)

#include <include/zephyr/sys/cbprintf.h>

Append read-only strings from source package to destination package.

If package was created with CBPRINTF_PACKAGE_ADD_RO_STR_POS or CBPRINTF_PACKAGE_ADD_RW_STR_POS it contains arrays of indexes where string address can be found in the package. When flag is set, read-only strings are copied into destination package. Address of strings indicated as read-write are also checked and if determined to be read-only they are also copied.

◆ CBPRINTF_PACKAGE_COPY_RW_STR

#define CBPRINTF_PACKAGE_COPY_RW_STR   BIT(1)

#include <include/zephyr/sys/cbprintf.h>

Append read-write strings from source package to destination package.

If package was created with CBPRINTF_PACKAGE_ADD_RW_STR_POS it contains arrays of indexes where string address can be found in the package. When flag is set, list of read-write strings is examined and if they are not determined to be read-only, they are copied into the destination package. If CBPRINTF_PACKAGE_COPY_RO_STR is not set, remaining string locations are considered as pointing to read-only location and they are copy to the package if CBPRINTF_PACKAGE_COPY_KEEP_RO_STR is set.