Convert LOG() -> ROCP_X logging macros. (#695)
* Convert LOG() -> ROCP_X logging macros.
This patch converts the LOG() macro to the ROCP_X logging macros.
There are the following levels of logs.
Logs whos expressions are not evaluated unless the log level is enabled:
ROCP_TRACE - VLOG(2) (enabeled by env variable GLOG_v=2)
ROCP_INFO - VLOG(1) (enabeled by env variable GLOG_v=1)
Logs whos expressions are always evaluated:
ROCP_WARNING - LOG(WARNING)
ROCP_ERROR - LOG(ERROR)
ROCP_FATAL - LOG(FATAL)
ROCP_DFATAL - DLOG(FATAL) (only fatal in debug mode)
* source formatting (clang-format v11) (#696)
Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
* Minor fix
* Fixes for VLOG before main
* fix vmodule
* source formatting (clang-format v11) (#718)
Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
* memory leak fix
* Vlog change
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
[ROCm/rocprofiler-sdk commit: 41c0ddd72d]
Este cometimento está contido em:
1 ascendente
d7781d0b40
cometimento
80e32505d5
38 ficheiros modificados
+193
-152
Não existem ficheiros que correspondam à sua pesquisa
@@ -21,6 +21,7 @@
|
||||
// THE SOFTWARE.
|
||||
|
||||
#include "lib/common/xml.hpp"
|
||||
#include "lib/common/logging.hpp"
|
||||
|
||||
#include <glog/logging.h>
|
||||
|
||||
@@ -304,7 +305,7 @@ Xml::Process()
|
||||
break;
|
||||
default:
|
||||
{
|
||||
LOG(ERROR) << "XML parser error: wrong state: " << state_;
|
||||
ROCP_ERROR << "XML parser error: wrong state: " << state_;
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@@ -418,7 +419,7 @@ void
|
||||
Xml::BadFormat(token_t token)
|
||||
{
|
||||
token.push_back('\0');
|
||||
LOG(ERROR) << "Error: " << file_name_ << ", line " << file_line_ << ", bad XML token '"
|
||||
ROCP_ERROR << "Error: " << file_name_ << ", line " << file_line_ << ", bad XML token '"
|
||||
<< token.data() << "'";
|
||||
abort();
|
||||
}
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador