/developtools/profiler/device/base/include/ |
H A D | logging.h | 81 static inline int HiLogPrintArgs(int prio, int domain, ConstCharPtr tag, ConstCharPtr fmt, va_list vargs) in HiLogPrintArgs() argument 91 count = count + vfprintf(stderr, fmt, vargs) + fprintf(stderr, "\n"); in HiLogPrintArgs() 96 static inline int HiLogPrint(int type, int prio, int domain, ConstCharPtr tag, ConstCharPtr fmt, ...) in HiLogPrint() argument 100 va_start(vargs, fmt); in HiLogPrint() 101 int count = HiLogPrintArgs(prio, domain, tag, fmt, vargs); in HiLogPrint() 110 #define HILOG_BASE_DEBUG(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_DEBUG, LOG_DOMAIN, LOG_TAG, fmt, ##__VA_ARGS__) 111 #define HILOG_BASE_INFO(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_INFO, LOG_DOMAIN, LOG_TAG, fmt, ##__VA_ARGS__) 112 #define HILOG_BASE_WARN(LOG_CORE, fmt, 132 StringFormat(const char* fmt, ...) StringFormat() argument [all...] |
/developtools/hdc/hdcd_user_permit/src/ |
H A D | common.h | 19 #define AUTH_LOGF(fmt, ...) printf("[f:" fmt ".]\n", ##__VA_ARGS__) 20 #define AUTH_LOGE(fmt, ...) printf("[e:" fmt ".]\n", ##__VA_ARGS__) 21 #define AUTH_LOGW(fmt, ...) printf("[w:" fmt ".]\n", ##__VA_ARGS__) 22 #define AUTH_LOGI(fmt, ...) printf("[i:" fmt ".]\n", ##__VA_ARGS__) 23 #define AUTH_LOGD(fmt, ...) printf("[d:" fmt " [all...] |
/developtools/packing_tool/packing_tool/frameworks/include/ |
H A D | app_log_wrapper.h | 58 #define APP_LOGD(fmt, ...) \ 60 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 61 #define APP_LOGI(fmt, ...) \ 63 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 64 #define APP_LOGW(fmt, ...) \ 66 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 67 #define APP_LOGE(fmt, ...) \ 69 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 70 #define APP_LOGF(fmt, ...) \ 72 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAM [all...] |
/developtools/hapsigner/hapsigntool_cpp/common/include/ |
H A D | signature_tools_log.h | 35 #define SIGNATURE_LOG(level, fmt, ...) \ 36 printf("[%s] [%s] [%s] [%d] " fmt "\n", level, __FILE_NAME__, __FUNCTION__, __LINE__, ##__VA_ARGS__) \ 39 #define SIGNATURE_TOOLS_LOGI(fmt, ...) SIGNATURE_LOG("Info", fmt, ##__VA_ARGS__) 40 #define SIGNATURE_TOOLS_LOGD(fmt, ...) SIGNATURE_LOG("Debug", fmt, ##__VA_ARGS__) 41 #define SIGNATURE_TOOLS_LOGW(fmt, ...) SIGNATURE_LOG("Warn", fmt, ##__VA_ARGS__) 43 #define SIGNATURE_TOOLS_LOGI(fmt, ...) 44 #define SIGNATURE_TOOLS_LOGD(fmt, [all...] |
/developtools/smartperf_host/trace_streamer/src/base/ |
H A D | log.h | 32 #define LOGWITHLEVEL(level, motify, fmt, ...) \ 35 fprintf(stdout, "[-%c][%s][%d]: " fmt "\n", motify, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ 41 #define TS_LOGE(fmt, ...) LOGWITHLEVEL(LOG_ERROR, 'E', fmt, ##__VA_ARGS__) 42 #define TS_LOGF(fmt, ...) LOGWITHLEVEL(LOG_FATAL, 'F', fmt, ##__VA_ARGS__) 43 #define TS_LOGD(fmt, ...) LOGWITHLEVEL(LOG_DEBUG, 'D', fmt, ##__VA_ARGS__) 44 #define TS_LOGI(fmt, ...) LOGWITHLEVEL(LOG_INFO, 'I', fmt, ##__VA_ARGS_ [all...] |
/developtools/profiler/host/smartperf/client/client_command/include/ |
H A D | sp_log.h | 27 void SpLog(SpLogLevel logLevel, const char *fmt, ...); 29 #define LOGD(fmt, ...) \ 30 SpLog(SP_LOG_DEBUG, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##__VA_ARGS__) 32 #define LOGI(fmt, ...) \ 33 SpLog(SP_LOG_INFO, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##__VA_ARGS__) 35 #define LOGW(fmt, ...) \ 36 SpLog(SP_LOG_WARN, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##__VA_ARGS__) 38 #define LOGE(fmt, ...) \ 39 SpLog(SP_LOG_ERROR, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##__VA_ARGS__)
|
/developtools/integration_verification/tools/fotff/pkg/gitee_common/ |
H A D | build.go | 20 "fmt" 71 cmd := fmt.Sprintf("mkdir -p %s && cd %s && repo init -u https://gitee.com/openharmony/manifest.git", server.WorkSpace, server.WorkSpace) 73 return fmt.Errorf("remote: mkdir error: %w", err) 76 fmt.Sprintf("%s/.repo/manifest.xml", server.WorkSpace), filepath.Join(m.Workspace, config.Pkg, "manifest_tag.xml")); err != nil { 77 return fmt.Errorf("upload and replace manifest error: %w", err) 80 cmd = fmt.Sprintf("cd %s && repo sync -c --no-tags --force-remove-dirty && repo forall -c 'git reset --hard && git clean -dfx && git lfs update --force && git lfs install && git lfs pull'", server.WorkSpace) 82 return fmt.Errorf("remote: repo sync error: %w", err) 84 cmd = fmt.Sprintf("cd %s && %s", server.WorkSpace, config.PreCompileCMD) 86 return fmt.Errorf("remote: pre-compile command error: %w", err) 89 cmd = fmt [all...] |
/developtools/hiperf/include/ |
H A D | hiperf_hilog.h | 31 #define FORMATTED(fmt, ...) "[%" HILOG_PUBLIC "s]" fmt HILOG_NEWLINE, __FUNCTION__, ##__VA_ARGS__ 33 #define FORMATTED(fmt, ...) \ 34 "[%" HILOG_PUBLIC "s:%" HILOG_PUBLIC "d] %" HILOG_PUBLIC "s# " fmt HILOG_NEWLINE, __FILE_NAME__, \ 107 static inline std::string StringFormat(const char* fmt, ...) in StringFormat() argument 111 std::string format(fmt); in StringFormat() 112 va_start(vargs, fmt); in StringFormat() 125 #define CHECK_TRUE(expr, retval, log, fmt, ...) \ 129 std::string str = StringFormat(fmt, ##__VA_ARGS__); \ 132 printf("%s", StringFormat(fmt, ##__VA_ARGS_ [all...] |
/developtools/smartperf_host/ide/server/ |
H A D | main.go | 31 "fmt" 94 fmt.Println("keyFile.key exists") 128 fmt.Println("Generate hdc rsa private key failed") 137 fmt.Println(err) 155 fmt.Println("Error: -o must be 0 or 1") 162 fmt.Println(exPath) 188 Addr: fmt.Sprintf(":%d", port), 191 log.Println(fmt.Sprintf("HTTPS[%d]服务启动", port)) 197 Addr: fmt.Sprintf(":%d", port+1), 200 log.Println(fmt [all...] |
/developtools/hdc/hdc_rust/src/tar/ |
H A D | header.rs | 19 use core::fmt; 20 use std::fmt::Debug; 107 impl std::fmt::Debug for Header { 108 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() functions
|
/developtools/integration_verification/tools/fotff/tester/xdevice/ |
H A D | xdevice.go | 23 "fmt" 75 return fmt.Errorf("enable test mode at device %s done, but boot unnormally, hdc connection fail", device) 83 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int())))) 99 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int())))) 113 return ret, fmt.Errorf("read latest report err, no result found") 116 return ret, fmt.Errorf("read latest report err, no matched result found") 123 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt [all...] |
/developtools/integration_verification/tools/fotff/tester/smoke/ |
H A D | smoke.go | 23 "fmt" 62 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int())))) 81 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int())))) 98 return ret, fmt.Errorf("read latest report err, no result found") 101 return ret, fmt.Errorf("read latest report err, no matched result found") 108 reportDir := fmt.Sprintf("%X", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int()))))
|
/developtools/integration_verification/tools/fotff/pkg/mock/ |
H A D | mock.go | 20 "fmt" 35 ret := fmt.Sprintf("https://testserver.com/issues/%s", pkg) 43 ret[i] = fmt.Sprintf("%s-%s-%s", from, to, ret[i]) 50 ret := fmt.Sprintf("pkg%d", m.pkgCount)
|
/developtools/profiler/host/smartperf/client/client_command/ |
H A D | sp_log.cpp | 77 void SpLog(SpLogLevel logLevel, const char *fmt, ...) in SpLog() argument 87 va_start(arg, fmt); in SpLog() 88 ret = vsprintf_s(logBuf, sizeof(logBuf), fmt, arg); in SpLog()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | hiperf_hilog.h | 30 #define FORMATED(fmt, ...) \ 31 "[%" HILOG_PUBLIC "s:%" HILOG_PUBLIC "d] %" HILOG_PUBLIC "s# " fmt HILOG_NEWLINE, FILENAME, \
|
H A D | debug_logger.h | 85 int Log(DebugLevel level, const std::string &logTag, const char *fmt, ...) const 300 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) \ 303 HLOGE("UNWIND_CHECK_NOTNULL(%s) in %s:%d FAILED, " fmt, #ptr, __func__, \ 309 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) \ 312 HLOGE("UNWIND_CHECK_TRUE(%s) in %s:%d FAILED, " fmt, #expr, __func__, __LINE__, ##__VA_ARGS__); \ 362 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) \ 369 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) \
|
/developtools/integration_verification/tools/fotff/utils/ |
H A D | ssh.go | 21 "fmt" 98 cmd = fmt.Sprintf("%s\nexit $?\n", cmd) 102 fmt.Printf("[%s] exec at %s %s :\n", time.Now(), addr, cmd) 131 return fmt.Errorf("open remote file %s at %s err: %v", remoteFile, addr, err) 137 return fmt.Errorf("create local file err: %v", err) 143 return fmt.Errorf("open local file err: %v", err) 149 return fmt.Errorf("create remote file %s at %s err: %v", remoteFile, addr, err)
|
H A D | log.go | 19 "fmt" 46 return fmt.Sprintf("%s()", fn), fmt.Sprintf("%s:%d", filename, f.Line) 82 stdout := filepath.Join("logs", fmt.Sprintf("%s_stdout.log", pkg))
|
/developtools/profiler/hiebpf/test/unittest/ |
H A D | libbpf_logger_test.cpp | 63 char fmt[] = "text"; in HWTEST_F() local 64 ret = logger.Printf(0, fmt, args); in HWTEST_F() 69 ret = logger.Printf(0, fmt, args); in HWTEST_F()
|
/developtools/hdc/hdc_rust/src/cffi/ |
H A D | log.h | 54 #define WRITE_LOG(level, fmt, ...) PrintLogEx(__FILE__, __LINE__, level, fmt, ##__VA_ARGS__)
|
/developtools/hdc/src/test/jdwp/ |
H A D | main.cpp | 25 static void PrintMessage(const char *fmt, ...)
in PrintMessage() argument 29 va_start(ap, fmt);
in PrintMessage() 30 vfprintf(stdout, fmt, ap);
in PrintMessage()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | debug_logger.cpp | 81 int DebugLogger::Log(DebugLevel level, const std::string &logTag, const char *fmt, ...) const in Log() argument 88 if (!ShouldLog(level, logTag) or logDisabled_ or fmt == nullptr) { in Log() 98 va_start(va, fmt); in Log() 99 ret = vsnprintf_s(buffer.data(), buffer.size(), buffer.size() - 1, fmt, va); in Log()
|
/developtools/hdc/src/common/ |
H A D | define.h | 197 #define WRITE_LOG(level, fmt, ...) Base::PrintLogEx(__FUNCTION__, __LINE__, level, fmt, ##__VA_ARGS__) 199 #define WRITE_LOG(level, fmt, ...) Base::PrintLogEx(__FILE_NAME__, __LINE__, level, fmt, ##__VA_ARGS__)
|
/developtools/profiler/hiebpf/include/ |
H A D | hhlog.h | 189 #define CHECK_NOTNULL(ptr, retval, fmt, ...) \ 192 HHLOGE(true, "CHECK_NOTNULL(%s) in %s:%d FAILED, " fmt, #ptr, __func__, \ 198 #define CHECK_TRUE(expr, retval, fmt, ...) \ 201 HHLOGE(true, "CHECK_TRUE(%s) in %s:%d FAILED, " fmt, #expr, __func__, __LINE__, ##__VA_ARGS__); \
|
/developtools/integration_verification/tools/fotff/tester/manual/ |
H A D | manual.go | 20 "fmt" 64 fmt.Printf("please do testcase %s on device %s manually and type the test result, 'pass' or 'fail':\n", testCase, deviceSN) 65 if _, err := fmt.Scanln(&answer); err != nil {
|