#include <simics/base/log.h>
#include <initializer_list>
#include <string>
Go to the source code of this file.
|
| #define | GROUP_ID(NAME) obj().group_id(#NAME) |
| |
| #define | SIM_LOG_INFO_STR(level, obj, group, str) SIM_LOG_INFO(level, obj, group, "%s", str.c_str()); |
| | Special macro to handle string object (for example, fmt::format)
|
| |
| #define | SIM_LOG_SPEC_VIOLATION_STR(level, obj, group, str) SIM_LOG_SPEC_VIOLATION(level, obj, group, "%s", str.c_str()); |
| |
| #define | SIM_LOG_UNIMPLEMENTED_STR(level, obj, group, str) SIM_LOG_UNIMPLEMENTED(level, obj, group, "%s", str.c_str()); |
| |
| #define | SIM_LOG_ERROR_STR(obj, group, str) SIM_LOG_ERROR(obj, group, "%s", str.c_str()); |
| |
| #define | SIM_LOG_CRITICAL_STR(obj, group, str) SIM_LOG_CRITICAL(obj, group, "%s", str.c_str()); |
| |
|
| using | simics::LogGroups = std::initializer_list< std::string > |
| | Type used for log group names.
|
| |
◆ GROUP_ID
| #define GROUP_ID |
( |
|
NAME | ) |
obj().group_id(#NAME) |
◆ SIM_LOG_CRITICAL_STR
| #define SIM_LOG_CRITICAL_STR |
( |
|
obj, |
|
|
|
group, |
|
|
|
str |
|
) |
| SIM_LOG_CRITICAL(obj, group, "%s", str.c_str()); |
◆ SIM_LOG_ERROR_STR
| #define SIM_LOG_ERROR_STR |
( |
|
obj, |
|
|
|
group, |
|
|
|
str |
|
) |
| SIM_LOG_ERROR(obj, group, "%s", str.c_str()); |
◆ SIM_LOG_INFO_STR
| #define SIM_LOG_INFO_STR |
( |
|
level, |
|
|
|
obj, |
|
|
|
group, |
|
|
|
str |
|
) |
| SIM_LOG_INFO(level, obj, group, "%s", str.c_str()); |
Special macro to handle string object (for example, fmt::format)
◆ SIM_LOG_SPEC_VIOLATION_STR
| #define SIM_LOG_SPEC_VIOLATION_STR |
( |
|
level, |
|
|
|
obj, |
|
|
|
group, |
|
|
|
str |
|
) |
| SIM_LOG_SPEC_VIOLATION(level, obj, group, "%s", str.c_str()); |
◆ SIM_LOG_UNIMPLEMENTED_STR
| #define SIM_LOG_UNIMPLEMENTED_STR |
( |
|
level, |
|
|
|
obj, |
|
|
|
group, |
|
|
|
str |
|
) |
| SIM_LOG_UNIMPLEMENTED(level, obj, group, "%s", str.c_str()); |