/arkcompiler/toolchain/common/ |
H A D | log_wrapper.h | 67 static void PrintLog(LogLevel level, const char* fmt, ...); 74 #define LOGF(fmt, ...) StdLog::PrintLog(LogLevel::FATAL, fmt, ##__VA_ARGS__) 75 #define LOGE(fmt, ...) StdLog::PrintLog(LogLevel::ERROR, fmt, ##__VA_ARGS__) 76 #define LOGW(fmt, ...) StdLog::PrintLog(LogLevel::WARN, fmt, ##__VA_ARGS__) 77 #define LOGI(fmt, ...) StdLog::PrintLog(LogLevel::INFO, fmt, ##__VA_ARGS__) 78 #define LOGD(fmt, [all...] |
H A D | log_wrapper.cpp | 34 std::string StripFormatString(const char* fmt) in StripFormatString() argument 36 std::string newFmt(fmt); in StripFormatString() 44 void StdLog::PrintLog(LogLevel level, const char* fmt, ...) in PrintLog() argument 46 std::string formatted = StripFormatString(fmt); in PrintLog() 48 va_start(args, fmt); in PrintLog() 58 void StdLog::PrintLog(LogLevel level, const char* fmt, ...) in PrintLog() argument 60 std::string formatted = StripFormatString(fmt); in PrintLog() 62 va_start(args, fmt); in PrintLog()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
H A D | mpl_logging.h | 145 void EmitLogForUser(enum LogNumberCode num, enum LogLevel ll, const char *fmt, ...) const; 147 void EmitErrorMessage(const std::string &cond, const std::string &file, unsigned int line, const char *fmt, 177 #define DBG(tag, fmt, ...) \ 180 logInfo.EmitLogForDev(tag, kLlLog, __FILE_NAME__, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__); \ 184 #define DBG(tag, fmt, ...) 190 // #define LOG(tag, fmt, ...) \ 193 // logInfo.EmitLogForDev(tag, kLlLog, __FILE__, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__); \ 202 #define CHECK(cond, fmt, ...) \ 205 logInfo.EmitErrorMessage(#cond, __FILE_NAME__, __LINE__, fmt "\n", ##__VA_ARGS__); \ 209 #define CHECK(cond, fmt, [all...] |
/arkcompiler/runtime_core/static_core/runtime/templates/ |
H A D | bridge_helpers_dynamic.rb | 21 fmt = insn.format.pretty 22 if fmt == "imm4_v4_v4_v4_v4_v4" 24 fmt = "imm4_v4_v4_v4" 28 if fmt != "pref_imm16_v8" && fmt != "pref_imm16_v8_prof16" 31 fmt = insn.opcode 33 return "call_#{fmt}"
|
H A D | bridge_helpers_static.rb | 19 fmt = insn.format.pretty 20 if fmt == "v4_v4_v4_v4_id16" 22 fmt = "v4_v4_id16" 24 return "#{get_insn_type(insn)}_#{fmt}"
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/ |
H A D | mpl_logging.cpp | 42 void LogInfo::EmitLogForUser(enum LogNumberCode num, enum LogLevel ll, const char *fmt, ...) const in EmitLogForUser() argument 52 va_start(l, fmt); in EmitLogForUser() 53 int eNum = vsnprintf_s(buf + len, kMaxLogLen - len, static_cast<size_t>(kMaxLogLen - len - 1), fmt, l); in EmitLogForUser() 71 void LogInfo::EmitErrorMessage(const std::string &cond, const std::string &file, unsigned int line, const char *fmt, in EmitErrorMessage() argument 88 va_start(l, fmt); in EmitErrorMessage() 89 int eNum = vsnprintf_s(buf + len, kMaxLogLen - len, static_cast<size_t>(kMaxLogLen - len - 1), fmt, l); in EmitErrorMessage()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | logger.h | 40 inline std::string EtsLogMakeString(const char *fmt, ...) in EtsLogMakeString() argument 44 va_start(ap, fmt); in EtsLogMakeString() 47 int len = vsnprintf_s(nullptr, 0, PAGE_SIZE, fmt, ap); in EtsLogMakeString() 55 if (vsnprintf_s(res.data(), len + 1, len, fmt, apCopy) < 0) { in EtsLogMakeString()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | string_helpers.h | 33 inline std::string Vformat(const char *fmt, va_list args) in Vformat() argument 44 int r = vsnprintf_truncated_s(result.data(), result.size() + 1, fmt, copy_args); in Vformat() 61 inline std::string Format(const char *fmt, ...) in Format() argument 64 va_start(args, fmt); // NOLINT(cppcoreguidelines-pro-type-vararg) in Format() 66 std::string result = Vformat(fmt, args); in Format()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | string_helpers.h | 33 inline std::string Vformat(const char *fmt, va_list args) in Vformat() argument 44 int r = vsnprintf_truncated_s(result.data(), result.size() + 1, fmt, copyArgs); in Vformat() 61 inline std::string Format(const char *fmt, ...) in Format() argument 64 va_start(args, fmt); // NOLINT(cppcoreguidelines-pro-type-vararg) in Format() 66 std::string result = Vformat(fmt, args); in Format()
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | helpers.py | 249 fmt = '%(message)s' variable in ColorFormatter 252 TRACE_LOG_LEVEL: magenta + fmt + reset, 253 logging.DEBUG: bold_blue + fmt + reset, 254 logging.INFO: cyan + fmt + reset, 255 PASS_LOG_LEVEL: green + fmt + reset, 256 logging.WARNING: yellow + fmt + reset, 257 logging.ERROR: red + fmt + reset, 258 logging.CRITICAL: bold_red + fmt + reset
|
/arkcompiler/toolchain/build/third_party_gn/libuv/src/ |
H A D | log_ohos.c | 17 int uv__log_impl(enum uv__log_level level, const char* fmt, ...) in uv__log_impl() argument
|
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
H A D | orphaned_md.rb | 30 def fmt(val) method in OrphanedMd
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
H A D | orphaned_md.rb | 30 def fmt(val) method in OrphanedMd
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_vm_api.cpp | 24 static void LogPrint([[maybe_unused]] int id, int level, const char *component, [[maybe_unused]] const char *fmt, in LogPrint() argument 74 [[maybe_unused]] const char *fmt, const char *msg) in LogPrint() 73 LogPrint([[maybe_unused]] int id, [[maybe_unused]] int level, [[maybe_unused]] const char *component, [[maybe_unused]] const char *fmt, const char *msg) LogPrint() argument
|
/arkcompiler/runtime_core/static_core/runtime/arch/aarch64/ |
H A D | helpers_aarch64.S | 149 .macro LOG3 fmt, arg1, arg2 151 LARG0 \fmt
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
H A D | ets_napi_invoke_interface.cpp | 118 static void EtsMobileLogPrint(int id, int level, const char *component, const char *fmt, const char *msg) in EtsMobileLogPrint() argument 155 logPrintCallback(id, etsLevel, component, fmt, msg); in EtsMobileLogPrint()
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
H A D | regexp_parser.h | 224 void PrintF(const char *fmt, ...);
|
/arkcompiler/runtime_core/isa/ |
H A D | isapi.rb | 109 fmt = format.pretty 110 if fmt == 'none' 113 "#{mn}_#{fmt}"
|
/arkcompiler/runtime_core/static_core/isa/ |
H A D | isapi.rb | 109 fmt = format.pretty 110 if fmt == 'none' 113 "#{mn}_#{fmt}"
|
/arkcompiler/ets_runtime/ecmascript/regexp/ |
H A D | regexp_parser.h | 289 void PrintF(const char *fmt, ...);
|
H A D | regexp_parser.cpp | 1583 void RegExpParser::PrintF(const char *fmt, ...) in PrintF() argument 1588 va_start(args, fmt); in PrintF() 1589 vprintf(fmt, args); in PrintF() 1592 (void)fmt; in PrintF()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | string_helper.h | 360 static inline std::string Vformat(const char *fmt, va_list args) in Vformat() argument 371 int r = vsnprintf_truncated_s(result.data(), result.size() + 1, fmt, copy_args); in Vformat()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
H A D | jsnapi.h | 139 using LOG_PRINT = int (*)(int id, int level, const char *tag, const char *fmt, const char *message);
|
/arkcompiler/ets_runtime/test/ffiworkloadtest/ |
H A D | get_ffi_workload_report.py | 39 formatter = logging.Formatter(fmt='[%(asctime)s] [%(levelname)s] %(message)s',
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs.h | 87 static void DebugPrintCustom(uintptr_t fmt, ...);
92 static void FatalPrintCustom(uintptr_t fmt, ...);
|