Home
last modified time | relevance | path

Searched refs:fmt (Results 1 - 25 of 56) sorted by relevance

123

/developtools/profiler/device/base/include/
H A Dlogging.h81 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 Dcommon.h19 #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 Dapp_log_wrapper.h58 #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 Dsignature_tools_log.h35 #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 Dlog.h32 #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 Dsp_log.h27 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 Dbuild.go20 "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 Dhiperf_hilog.h31 #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 Dmain.go31 "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 Dheader.rs19 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 Dxdevice.go23 "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 Dsmoke.go23 "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 Dmock.go20 "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 Dsp_log.cpp77 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 Dhiperf_hilog.h30 #define FORMATED(fmt, ...) \
31 "[%" HILOG_PUBLIC "s:%" HILOG_PUBLIC "d] %" HILOG_PUBLIC "s# " fmt HILOG_NEWLINE, FILENAME, \
H A Ddebug_logger.h85 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 Dssh.go21 "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 Dlog.go19 "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 Dlibbpf_logger_test.cpp63 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 Dlog.h54 #define WRITE_LOG(level, fmt, ...) PrintLogEx(__FILE__, __LINE__, level, fmt, ##__VA_ARGS__)
/developtools/hdc/src/test/jdwp/
H A Dmain.cpp25 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 Ddebug_logger.cpp81 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 Ddefine.h197 #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 Dhhlog.h189 #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 Dmanual.go20 "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 {

Completed in 8 milliseconds

123