Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 57) sorted by relevance

123

/developtools/profiler/device/base/include/
Dlogging.h81 static inline int HiLogPrintArgs(int prio, int domain, ConstCharPtr tag, ConstCharPtr fmt, va_list … 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_DEBUG(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_DEBUG, LOG_DOMAIN, LOG_TAG, fmt, #… argument
111 #define HILOG_INFO(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_INFO, LOG_DOMAIN, LOG_TAG, fmt, ##_… argument
112 #define HILOG_WARN(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_WARN, LOG_DOMAIN, LOG_TAG, fmt, ##_… argument
113 #define HILOG_ERROR(LOG_CORE, fmt, ...) HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, fmt, #… argument
130 static inline std::string StringFormat(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
[all …]
/developtools/hdc/hdcd_user_permit/src/
Dcommon.h19 #define AUTH_LOGF(fmt, ...) printf("[f:" fmt ".]\n", ##__VA_ARGS__) argument
20 #define AUTH_LOGE(fmt, ...) printf("[e:" fmt ".]\n", ##__VA_ARGS__) argument
21 #define AUTH_LOGW(fmt, ...) printf("[w:" fmt ".]\n", ##__VA_ARGS__) argument
22 #define AUTH_LOGI(fmt, ...) printf("[i:" fmt ".]\n", ##__VA_ARGS__) argument
23 #define AUTH_LOGD(fmt, ...) printf("[d:" fmt ".]\n", ##__VA_ARGS__) argument
/developtools/smartperf_host/trace_streamer/src/base/
Dlog.h33 #define LOGWITHLEVEL(level, motify, fmt, ...) … argument
36 … fprintf(stdout, "[-%c][%s][%d]: " fmt "\n", motify, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
42 #define TS_LOGE(fmt, ...) LOGWITHLEVEL(LOG_ERROR, 'E', fmt, ##__VA_ARGS__) argument
43 #define TS_LOGF(fmt, ...) LOGWITHLEVEL(LOG_FATAL, 'F', fmt, ##__VA_ARGS__) argument
44 #define TS_LOGD(fmt, ...) LOGWITHLEVEL(LOG_DEBUG, 'D', fmt, ##__VA_ARGS__) argument
45 #define TS_LOGI(fmt, ...) LOGWITHLEVEL(LOG_INFO, 'I', fmt, ##__VA_ARGS__) argument
46 #define TS_LOGW(fmt, ...) LOGWITHLEVEL(LOG_WARN, 'W', fmt, ##__VA_ARGS__) argument
/developtools/profiler/host/smartperf/client/client_command/include/
Dsp_log.h27 void SpLog(SpLogLevel logLevel, const char *fmt, ...);
29 #define LOGD(fmt, ...) \ argument
30 …SpLog(SP_LOG_DEBUG, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), #…
32 #define LOGI(fmt, ...) \ argument
33 …SpLog(SP_LOG_INFO, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##…
35 #define LOGW(fmt, ...) \ argument
36 …SpLog(SP_LOG_WARN, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), ##…
38 #define LOGE(fmt, ...) \ argument
39 …SpLog(SP_LOG_ERROR, (std::string("[") + "SP_daemon" + "][" + __FUNCTION__ + "]:" + fmt).c_str(), #…
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
Dbuild.go71 …cmd := fmt.Sprintf("mkdir -p %s && cd %s && repo init -u https://gitee.com/openharmony/manifest.gi…
73 return fmt.Errorf("remote: mkdir error: %w", err)
76fmt.Sprintf("%s/.repo/manifest.xml", server.WorkSpace), filepath.Join(m.Workspace, config.Pkg, "ma…
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 res…
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.Sprintf("cd %s && rm -rf out", server.WorkSpace)
91 return fmt.Errorf("remote: rm ./out command error: %w", err)
[all …]
/developtools/smartperf_host/ide/server/
Dmain.go86 fmt.Println("keyFile.key exists")
122 fmt.Println("Error: -o must be 0 or 1")
128 fmt.Println(exPath)
150 Addr: fmt.Sprintf(":%d", port),
153 log.Println(fmt.Sprintf("HTTPS[%d]服务启动", port))
159 Addr: fmt.Sprintf(":%d", port+1),
162 log.Println(fmt.Sprintf("HTTP[%d]服务启动", port))
167 open(fmt.Sprintf("https://localhost:%d/application", port))
176 cmdRes := exec.Command("cmd", "/c", fmt.Sprintf("netstat -ano -p tcp | findstr %d", portNumber))
200 var fileName = fmt.Sprintf("%d-%d-%d", now.Year(), now.Month(), now.Day())
[all …]
/developtools/integration_verification/tools/fotff/tester/xdevice/
Dxdevice.go75 …return fmt.Errorf("enable test mode at device %s done, but boot unnormally, hdc connection fail", …
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.Sprintf("%d", rand.Int()))))
/developtools/integration_verification/tools/fotff/tester/smoke/
Dsmoke.go62 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/profiler/host/smartperf/client/client_command/
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/integration_verification/tools/fotff/pkg/mock/
Dmock.go35 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/integration_verification/tools/fotff/utils/
Dssh.go98 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)
Dlog.go46 return fmt.Sprintf("%s()", fn), fmt.Sprintf("%s:%d", filename, f.Line)
82 stdout := filepath.Join("logs", fmt.Sprintf("%s_stdout.log", pkg))
Dproxy.go76 proxyURL, err = url.Parse(fmt.Sprintf("http://%s", proxyList[proxyIndex]))
78 …proxyURL, err = url.Parse(fmt.Sprintf("http://%s:%s@%s", proxyUser, url.QueryEscape(proxyPassword)…
/developtools/profiler/device/plugins/native_daemon/include/
Dhiperf_hilog.h30 #define FORMATED(fmt, ...) \ argument
31 "[%" HILOG_PUBLIC "s:%" HILOG_PUBLIC "d] %" HILOG_PUBLIC "s# " fmt HILOG_NEWLINE, FILENAME, \
Ddebug_logger.h86 int Log(DebugLevel level, const std::string &logTag, const char *fmt, ...) const
306 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) … argument
309 HLOGE("UNWIND_CHECK_NOTNULL(%s) in %s:%d FAILED, " fmt, #ptr, __func__, \
315 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) … argument
318 …HLOGE("UNWIND_CHECK_TRUE(%s) in %s:%d FAILED, " fmt, #expr, __func__, __LINE__, ##__VA_ARGS__); \
368 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) … argument
375 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) … argument
/developtools/profiler/hiebpf/test/unittest/
Dlibbpf_logger_test.cpp63 char fmt[] = "text"; variable
64 ret = logger.Printf(0, fmt, args);
69 ret = logger.Printf(0, fmt, args);
/developtools/integration_verification/cases/smoke/basic/screenshot32/APL_compare_03/
Dcommon.py25 fmt = logging.Formatter(fmt="%(asctime)s %(message)s", datefmt='%Y-%m-%d %H:%M:%S %a') variable
26 apl_file_log.setFormatter(fmt)
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/APL_compare_03/
Dcommon.py25 fmt = logging.Formatter(fmt="%(asctime)s %(message)s", datefmt='%Y-%m-%d %H:%M:%S %a') variable
26 apl_file_log.setFormatter(fmt)
/developtools/hdc/src/test/jdwp/
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/hdc/hdc_rust/src/cffi/
Dlog.h54 #define WRITE_LOG(level, fmt, ...) PrintLogEx(__FILE__, __LINE__, level, fmt, ##__VA_ARGS__) argument
/developtools/profiler/hiebpf/include/
Dhhlog.h187 #define CHECK_NOTNULL(ptr, retval, fmt, ...) … argument
190 HHLOGE(true, "CHECK_NOTNULL(%s) in %s:%d FAILED, " fmt, #ptr, __func__, \
196 #define CHECK_TRUE(expr, retval, fmt, ...) … argument
199 …HHLOGE(true, "CHECK_TRUE(%s) in %s:%d FAILED, " fmt, #expr, __func__, __LINE__, ##__VA_ARGS__); …
/developtools/hiperf/include/
Dhiperf_hilog.h30 #define FORMATTED(fmt, ...) … argument
31 "[%" HILOG_PUBLIC "s:%" HILOG_PUBLIC "d] %" HILOG_PUBLIC "s# " fmt HILOG_NEWLINE, FILENAME, \
/developtools/integration_verification/tools/fotff/tester/manual/
Dmanual.go64fmt.Printf("please do testcase %s on device %s manually and type the test result, 'pass' or 'fail'…
65 if _, err := fmt.Scanln(&answer); err != nil {
/developtools/integration_verification/tools/fotff/res/
Dres.go63 snList = append(snList, fmt.Sprintf("device%d", i))
64 addrList = append(addrList, fmt.Sprintf("server%d", i))
/developtools/integration_verification/tools/fotff/rec/
Dfotff_test.go52 randomPrefix := fmt.Sprintf("%x", md5.Sum([]byte(fmt.Sprintf("%d", rand.Int()))))[:4]
55 steps[i-1] = fmt.Sprintf("%s_%s", randomPrefix, strconv.Itoa(i))
288 t.Run(fmt.Sprintf("RES%d:%s", i, tt.name), func(t *testing.T) {

123