Home
last modified time | relevance | path

Searched refs:Logger (Results 1 - 25 of 35) sorted by relevance

12

/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dlogger.h21 class Logger { class
23 Logger() : level_(INFO) {} in Logger() function in OHOS::Hardware::Logger
25 inline ~Logger() in ~Logger()
37 inline Logger &operator<<(const T &v) in operator <<()
46 inline Logger &Debug() in Debug()
55 inline Logger &Info() in Info()
62 inline Logger &Warning() in Warning()
69 inline Logger &Error() in Error()
76 inline Logger &Fatal() in Fatal()
H A Dparser.cpp33 Logger().Debug() << "failed to merge ast"; in Parse()
39 Logger().Error() << Option::Instance().GetSourceName() << ": Empty hcs file"; in Parse()
74 Logger().Error() << lexer_ << "syntax error, expect root node of end of file"; in ParseOneContent()
77 Logger().Error() << src << ": Empty hcs file"; in ParseOneContent()
82 Logger().Error() << lexer_ << "syntax error, expect EOF"; in ParseOneContent()
105 Logger().Error() << src << " circular include " << includeSrc; in ParseOne()
130 Logger().Error() << lexer_ << "syntax error, expect include path after ’#include‘"; in ProcessInclude()
137 Logger().Error() << lexer_ << "include invalid file: \'" << includePath << '\''; in ProcessInclude()
149 Logger().Error() << lexer_ << "include invalid file: \'" << current_.strval << '\''; in ProcessInclude()
175 Logger() in ParseNode()
[all...]
H A Ddecompile.cpp23 Logger().Error() << "Failed to open decompile file: " << fileName_; in InitDecompileFile()
32 Logger().Error() << "read file failed, read size is: " << readSize; in ReadFile()
47 Logger().Error() << "read header failed"; in VerifyDecompileFile()
50 Logger().Debug() << "read Header: magic is: " << header.magicNumber << " version major: " << header.versionMajor in VerifyDecompileFile()
54 Logger().Error() << "magic number is: " << header.magicNumber << ", check failed!"; in VerifyDecompileFile()
150 Logger().Debug() << "node name is: " << node->Name() << ", size is: " << nodeSize << ", hash is: " << nodeHash; in RebuildNode()
156 Logger().Error() << "Rebuild node failed, get next byte code failed"; in RebuildNode()
161 Logger().Error() << "Rebuild node failed, get child failed"; in RebuildNode()
165 Logger().Error() << "Rebuild node failed, add child failed"; in RebuildNode()
196 Logger() in RebuildNodeRefObject()
[all...]
H A Doption.cpp46 Logger().Error() << "Miss input file name"; in Parse()
125 Logger() << "Usage: hc-gen [Options] [File]\n" in ShowUsage()
143 Logger() << " " << ::std::setw(SPACE_WIDTH) << ::std::left << option << " " << helpInfo; in ShowOption()
153 Logger() << "Hcs compiler " << HCS_COMPILER_VERSION_MAJOR << "." << HCS_COMPILER_VERSION_MINOR;
154 Logger() << "Copyright (c) 2020-2021 Huawei Device Co., Ltd.";
237 Logger().Error() << "invalid source file: " << srcName << ", " << strerror(errno);
H A Dlexer.cpp45 Logger().Error() << "Failed to open source file: " << srcName_->data(); in Initialize()
76 Logger().Error() << *this << "can not recognized character '" << c << "'"; in SetTokenCharacter()
190 Logger().Error() << *this << "unterminated comment"; in ProcessComment()
197 Logger().Error() << *this << "unterminated signal line comment"; in ProcessComment()
207 Logger().Error() << *this << "unterminated multi-line comment"; in ProcessComment()
211 Logger().Error() << *this << "invalid character"; in ProcessComment()
256 Logger().Error() << *this << "Invalid escape character."; in LexFromString()
264 Logger().Error() << *this << "unterminated string"; in LexFromString()
334 Logger().Error() << *this << "illegal number: " << value.data(); in LexFromNumber()
H A Ddecompile_gen.cpp22 Logger().Debug() << "Decompile gen file: " << outPutFileName_; in DecompileGen()
29 Logger().Error() << "Failed to open decompile output file: " << outPutFileName_; in Init()
67 Logger().Error() << "ref unknown node, hash = " << value; in GetNodeRefPath()
120 Logger().Error() << "unknown opcode = " << astObj->Type(); in PrintBaseType()
H A Dast.cpp141 Logger().Error() << "add self as peer"; in AddPeer()
215 Logger().Error() << this->SourceInfo() << "merge different node to" << srcObj->SourceInfo(); in Merge()
220 Logger().Error() << this->SourceInfo() << "conflict type with " << srcObj->SourceInfo(); in Merge()
512 Logger().Error() << SourceInfo() << "merge conflict type with " << srcObj->SourceInfo();
560 Logger().Error() << child->SourceInfo() << "redefined, first definition at " << sym->second->SourceInfo();
573 Logger().Error() << SourceInfo() << "inherit invalid node: " << refNodePath_;
598 Logger().Error() << SourceInfo() << "circular reference " << refObj->SourceInfo();
615 Logger().Error() << SourceInfo() << "node copy with different type " << src->SourceInfo();
642 Logger().Error() << SourceInfo() << "reference node '" << refNodePath_ << "' not exist";
665 Logger()
[all...]
H A Dstartup_cfg_gen.cpp92 Logger().Error() << "failed to open output file: " << outFileName; in Initialize()
96 Logger().Debug() << "output: " << outFileName << outFileName_ << '\n'; in Initialize()
265 Logger().Debug() << "GetConfigArray term is null" << '\n';
271 Logger().Debug() << "GetConfigArray arrayObj is null" << '\n';
293 Logger().Debug() << "GetConfigIntArray term is null" << '\n';
299 Logger().Debug() << "GetConfigIntArray intArrayObj is null" << '\n';
320 Logger().Debug() << "GetConfigVector term is null" << '\n';
326 Logger().Debug() << "GetConfigVector arrayObj is null" << '\n';
431 Logger().Error() << "do not find device_info node";
H A Dbytecode_gen.cpp64 Logger().Error() << "failed to open output file: " << outFileName; in Initialize()
67 Logger().Debug() << "output: " << outFileName; in Initialize()
84 Logger().Error() << object->SourceInfo() << "cannot covert type " << object->Type() << " to opcode"; in ByteCodeConvert()
253 Logger().Error() << "failed to write file " << outFileName_;
266 Logger().Error() << "failed to open " << outFileName_;
274 Logger().Error() << "failed to open " << hexdumpOutName;
H A Dmacro_gen.cpp88 Logger().Error() << "failed to open output file: " << outFileName; in Initialize()
91 Logger().Debug() << "output: " << outFileName << outFileName_ << '\n'; in Initialize()
160 Logger().Debug() << "node:" << node->Name() << " child:"
164 Logger().Debug() << " " << child->Name();
221 Logger().Debug() << "name,type:[" << current->Name() << "," << type << "] depth:" << depth
H A Dtext_gen.cpp37 Logger().Error() << "failed to write file:" << outputFileName_; in Output()
197 Logger().Error() << "failed to open output file: " << outputFileName_; in InitOutput()
729 Logger().Error() << current->SourceInfo() << "duplicate node name at " << node->second->SourceInfo() << "\n"
/drivers/hdf_core/framework/tools/hdi-gen/util/
H A Dlogger.cpp14 int Logger::level_ = DEBUG;
16 void Logger::D(const char *tag, const char *format, ...) in D()
28 void Logger::E(const char *tag, const char *format, ...) in E()
40 void Logger::V(const char *tag, const char *format, ...) in V()
52 void Logger::Log(const char *tag, const char *format, va_list args) in Log()
59 void Logger::Err(const char *tag, const char *format, va_list args) in Err()
H A Doptions.cpp109 Logger::E(TAG, "invalid system level set: '%s', please input mini/lite/full", system.c_str()); in SetSystemLevel()
127 Logger::E(TAG, "invalid generate mode set: '%s', please input low/passthrough/ipc/kernel.", mode.c_str()); in SetGenerateMode()
144 Logger::E(TAG, "invalid language '%s', please input c, cpp or java", language.c_str()); in SetLanguage()
162 Logger::E(TAG, "invalid idl file path:%s", sourceFile.c_str()); in AddSources()
167 Logger::E(TAG, "verify path failed, path:%s", realPath.c_str()); in AddSources()
172 Logger::E(TAG, "this idl file has been add:%s", sourceFile.c_str()); in AddSources()
182 Logger::E(TAG, "invalid idl file path:%s", sourceFile.c_str()); in CheckOutPutFile()
187 Logger::E(TAG, "verify path failed, path:%s", realPath.c_str()); in CheckOutPutFile()
206 Logger::E(TAG, "invalid parameters '%s'.", packagePath.c_str()); in AddPackagePath()
210 Logger in AddPackagePath()
[all...]
H A Dstring_builder.cpp37 Logger::E(TAG, "buffer_ is nullptr!"); in Append()
60 Logger::E(TAG, "memcpy_s error ret = %d!", ret); in Append()
82 Logger::E(TAG, "memcpy_s error ret = %d!", ret); in Append()
130 Logger::E(TAG, "The StringBuilder is full."); in Grow()
147 Logger::E(TAG, "Fail to malloc %lu bytes memory.", newSize); in Grow()
154 Logger::E(TAG, "memcpy_s error ret = %d!", ret); in Grow()
168 Logger::E(TAG, "buffer_ is nullptr"); in ToString()
H A Dlogger.h16 class Logger { class
35 Logger();
37 ~Logger();
H A Dfile.cpp48 Logger::E(TAG, "can't open '%s'", path.c_str()); in File()
63 Logger::E(TAG, "failed to check path '%s'", path.c_str()); in OpenByRead()
69 Logger::E(TAG, "invalid path '%s'", path.c_str()); in OpenByRead()
75 Logger::E(TAG, "can't open '%s'", realPath.c_str()); in OpenByRead()
306 Logger::E(TAG, "failed to open '%s', errno:%d", dirPath.c_str(), errno); in CreateParentDir()
350 Logger::E(TAG, "failed to Verify_file, path:%s", path.c_str()); in CreateParentDir()
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
H A Dpreprocessor.cpp85 Logger::E(TAG, "no source files"); in CheckAllFilesPath()
92 Logger::E(TAG, "invailed file path '%s'.", filePath.c_str()); in CheckAllFilesPath()
113 Logger::E(TAG, "failed to load other by %s", info.GetFullName().c_str()); in AnalyseImportInfo()
125 Logger::E(TAG, "failed to open file '%s'.", sourceFile.c_str()); in ParseFileDetail()
133 Logger::E(TAG, "failed to get file name from '%s'.", info.filePath_.c_str()); in ParseFileDetail()
152 Logger::E(TAG, "%s: expected 'package' before '%s' token", LocInfo(token).c_str(), token.value.c_str()); in ParsePackage()
159 Logger::E(TAG, "%s: expected package name before '%s' token", LocInfo(token).c_str(), token.value.c_str()); in ParsePackage()
164 Logger::E(TAG, "%s:package name '%s' does not match file path '%s'", LocInfo(token).c_str(), in ParsePackage()
173 Logger::E(TAG, "%s:expected ';' before '%s' token", LocInfo(token).c_str(), token.value.c_str()); in ParsePackage()
193 Logger in ParseImports()
[all...]
/drivers/hdf_core/framework/tools/hdi-gen/
H A Dmain.cpp45 Logger::E("MAIN", "failed to preprocess"); in main()
51 Logger::E("MAIN", "failed to parse file"); in main()
66 Logger::E("hdi-gen", "failed to generate code"); in main()
/drivers/hdf_core/framework/tools/hdi-gen/hash/
H A Dhash.cpp53 Logger::E(TAG, "failed to open %s", filePath.c_str()); in FormatFile()
85 Logger::E(TAG, "invalid file path '%s'", path.c_str()); in GenFileHashKey()
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
H A Dcode_generator.cpp139 Logger::E(TAG, "the system level is not supported, please check option"); in GetCodeGenPoilcy()
146 Logger::E(TAG, "the generate mode is not supported, please check option"); in GetCodeGenPoilcy()
153 Logger::E(TAG, "the language is not supported, please check option"); in GetCodeGenPoilcy()
H A Djava_client_interface_code_emitter.cpp24 Logger::E("JavaClientInterfaceCodeEmitter", "Create '%s' failed!", directory_.c_str()); in ResolveDirectory()
H A Dc_interface_code_emitter.cpp24 Logger::E("CInterfaceCodeEmitter", "Create '%s' failed!", directory_.c_str()); in ResolveDirectory()
H A Dcpp_service_impl_code_emitter.cpp24 Logger::E("CppServiceImplCodeEmitter", "Create '%s' failed!", directory_.c_str()); in ResolveDirectory()
H A Dcpp_service_driver_code_emitter.cpp24 Logger::E("CppServiceDriverCodeEmitter", "Create '%s' failed!", directory_.c_str()); in ResolveDirectory()
H A Djava_client_proxy_code_emitter.cpp23 Logger::E("CppClientInterfaceCodeEmitter", "Create '%s' failed!", directory_.c_str()); in ResolveDirectory()

Completed in 11 milliseconds

12