Functions | |
void | NvOsDebugPrintStr (uint16_t module_id, uint8_t severity, const char *str) |
This function logs a string in a log buffer. More... | |
void | NvOsDebugPrintStrStr (uint16_t module_id, uint8_t severity, const char *str1, const char *str2) |
This function logs two different strings in a log buffer. More... | |
void | NvOsDebugPrintStrInt (uint16_t module_id, uint8_t severity, const char *str, int32_t val) |
This function logs a string and int32_t value in a log buffer. More... | |
void | NvOsDebugPrintStrUInt (uint16_t module_id, uint8_t severity, const char *str, uint32_t val) |
This function logs a string and an uint32_t value in a log buffer. More... | |
void | NvOsDebugPrintStrSLong (uint16_t module_id, uint8_t severity, const char *str, int64_t val) |
This function logs a string and int64_t value in a log buffer. More... | |
void | NvOsDebugPrintStrULong (uint16_t module_id, uint8_t severity, const char *str, uint64_t val) |
This function logs a string and uint64_t value in a log buffer. More... | |
void | NvOsDebugPrintStrWith2Int (uint16_t module_id, uint8_t severity, const char *str, int32_t value1, int32_t value2) |
This function logs a string with two int32_t values in a log buffer. More... | |
void | NvOsDebugPrintStrWith2SLong (uint16_t module_id, uint8_t severity, const char *str, int64_t value1, int64_t value2) |
This function logs a string with two int64_t values in a log buffer. More... | |
void | NvOsDebugPrintStrWith2UInt (uint16_t module_id, uint8_t severity, const char *str, uint32_t value1, uint32_t value2) |
This function logs a string with two uint32_t values in a log buffer. More... | |
void | NvOsDebugPrintStrWith2ULong (uint16_t module_id, uint8_t severity, const char *str, uint64_t value1, uint64_t value2) |
This function logs a string with two uint64_t values in a log buffer. More... | |
void | NvOsDebugPrintStrHexUInt (uint16_t module_id, uint8_t severity, const char *str, uint32_t val) |
This function logs a string and unsigned int value in hexadecimal to a log buffer. More... | |
void | NvOsDebugPrintStrHexULong (uint16_t module_id, uint8_t severity, const char *str, uint64_t val) |
This function logs a string and uint64_t value in hexadecimal to a log buffer. More... | |
void | NvOsDebugPrintStrWith2HexULong (uint16_t module_id, uint8_t severity, const char *str, uint64_t val1, uint64_t val2) |
This function logs a string and two uint64_t values in hexadecimal to a log buffer. More... | |
void | NvOsDebugPrintStrFloat (uint16_t module_id, uint8_t severity, const char *str, float val) |
This function logs a string and float value to a log buffer. More... | |
void | NvOsDebugPrintStrWith2Float (uint16_t module_id, uint8_t severity, const char *str, float val1, float val2) |
This function logs a string and two float values to a log buffer. More... | |
void | NvOsDebugPrintStrDouble (uint16_t module_id, uint8_t severity, const char *str, double val) |
This function logs a string and a double value to a log buffer. More... | |
void | NvOsDebugPrintStrWith2Double (uint16_t module_id, uint8_t severity, const char *str, double val1, double val2) |
This function logs a string and two double values to a log buffer. More... | |
uint32_t | NvOsIsLoggingReady (void) |
Checks if logging via NvOS is available. More... | |
uint32_t | NvOsInitializeLogging (const int32_t verbosity, const int32_t buf_size) |
Initialize logging for a client. More... | |
void NvOsDebugPrintStr | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str | ||
) |
This function logs a string in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
Usage considerations
void NvOsDebugPrintStrDouble | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
double | val | ||
) |
This function logs a string and a double value to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The float value that should be logged. |
Usage considerations
void NvOsDebugPrintStrFloat | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
float | val | ||
) |
This function logs a string and float value to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The float value that should be logged. |
Usage considerations
void NvOsDebugPrintStrHexUInt | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint32_t | val | ||
) |
This function logs a string and unsigned int value in hexadecimal to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The unsigned int value that should be logged. |
Usage considerations
void NvOsDebugPrintStrHexULong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint64_t | val | ||
) |
This function logs a string and uint64_t value in hexadecimal to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The uint64_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrInt | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
int32_t | val | ||
) |
This function logs a string and int32_t value in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The int32_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrSLong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
int64_t | val | ||
) |
This function logs a string and int64_t value in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The int64_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrStr | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str1, | ||
const char * | str2 | ||
) |
This function logs two different strings in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str1 | The string that should be logged. |
[in] | str2 | The string that should be logged. |
Usage considerations
void NvOsDebugPrintStrUInt | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint32_t | val | ||
) |
This function logs a string and an uint32_t value in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The unsigned int value that should be logged. |
Usage considerations
void NvOsDebugPrintStrULong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint64_t | val | ||
) |
This function logs a string and uint64_t value in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val | The uint64_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2Double | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
double | val1, | ||
double | val2 | ||
) |
This function logs a string and two double values to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val1 | The double value that should be logged. |
[in] | val2 | The double value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2Float | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
float | val1, | ||
float | val2 | ||
) |
This function logs a string and two float values to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val1 | The float value that should be logged. |
[in] | val2 | The float value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2HexULong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint64_t | val1, | ||
uint64_t | val2 | ||
) |
This function logs a string and two uint64_t values in hexadecimal to a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | val1 | The uint64_t value that should be logged. |
[in] | val2 | The uint64_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2Int | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
int32_t | value1, | ||
int32_t | value2 | ||
) |
This function logs a string with two int32_t values in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | value1 | The int32_t value that should be logged. |
[in] | value2 | The int32_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2SLong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
int64_t | value1, | ||
int64_t | value2 | ||
) |
This function logs a string with two int64_t values in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | value1 | The int64_t value that should be logged. |
[in] | value2 | The int64_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2UInt | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint32_t | value1, | ||
uint32_t | value2 | ||
) |
This function logs a string with two uint32_t values in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | value1 | The uint32_t value that should be logged. |
[in] | value2 | The uint32_t value that should be logged. |
Usage considerations
void NvOsDebugPrintStrWith2ULong | ( | uint16_t | module_id, |
uint8_t | severity, | ||
const char * | str, | ||
uint64_t | value1, | ||
uint64_t | value2 | ||
) |
This function logs a string with two uint64_t values in a log buffer.
[in] | module_id | The user specific code that is associated the message. |
[in] | severity | The severity level of this log. |
[in] | str | The string that should be logged. |
[in] | value1 | The uint64_t value that should be logged. |
[in] | value2 | The uint64_t value that should be logged. |
Usage considerations
uint32_t NvOsInitializeLogging | ( | const int32_t | verbosity, |
const int32_t | buf_size | ||
) |
Initialize logging for a client.
[in] | verbosity | The minimum severity to log. The verbosity is one of the following severity levels. If it is not one of the below, it is set to NVOS_LOG_SEVERITY_INFO as default verbosity.
|
[in] | buf_size | Log buffer size for calling process (in kilobytes) that is a multiple of 4. Valid range: [4..256]. The buffer size is determined based on the below. 1) If buf_size <= 0, obtain the buffer size from the envrionment, LOG_BUFFER_SIZE_KB. 2) If buf_size is in the valid range, use it as it is 3) If bug_size is out of the valid range, use NVOS_LOG_BUF_SZ_DEFAULT, which is 28. This parameter is only effective in QNX build. |
Usage considerations
uint32_t NvOsIsLoggingReady | ( | void | ) |
Checks if logging via NvOS is available.
Usage considerations