/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
H A D | It_posix_queue_203.cpp | 43 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
|
H A D | It_posix_queue_202.cpp | 42 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
|
H A D | It_posix_queue_187.cpp | 39 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/smoke/ |
H A D | It_posix_queue_003.cpp | 45 (void)snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH - 1, MQUEUE_STANDARD_NAME_LENGTH, "/mq003_%d", in Testcase()
|
/test/xts/device_attest_lite/services/core/include/utils/ |
H A D | attest_utils_log.h | 57 (d_curLen) += snprintf_s((d_curBuffer + d_curLen), (uint32_t)((d_maxLen) - (d_curLen)), \
|
/test/xts/device_attest/services/core/include/utils/ |
H A D | attest_utils_log.h | 59 (d_curLen) += snprintf_s((d_curBuffer + d_curLen), (uint32_t)((d_maxLen) - (d_curLen)), \
|
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
H A D | sockets_porting.c | 321 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name);
in lwip_ioctl_internal_SIOCGIFCONF() 323 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed."));
in lwip_ioctl_internal_SIOCGIFCONF() 327 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif));
in lwip_ioctl_internal_SIOCGIFCONF() 329 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed."));
in lwip_ioctl_internal_SIOCGIFCONF() 573 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name);
in lwip_ioctl_internal_SIOCGIFNAME() 578 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif));
in lwip_ioctl_internal_SIOCGIFNAME()
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
H A D | sockets.c | 312 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name);
in OsLwipIoctlInternalSiocgifConf() 314 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed."));
in OsLwipIoctlInternalSiocgifConf() 318 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif));
in OsLwipIoctlInternalSiocgifConf() 320 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed."));
in OsLwipIoctlInternalSiocgifConf() 553 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name);
in OsLwipIoctlInternalSiocgifName() 558 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif));
in OsLwipIoctlInternalSiocgifName()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.c | 143 ret_s = snprintf_s(buf, buf_len, buf_len - 1, in wpa_driver_nl80211_driver_cmd() 176 ret_s = snprintf_s(buf, buf_len, buf_len - 1, "POWERMODE = %d\n", state); in wpa_driver_nl80211_driver_cmd() 527 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "TX_POWER %d", power); in wpa_driver_set_tx_power() 692 len = snprintf_s(ioctl_data.buf, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
H A D | log_utils.cpp | 71 int ret = snprintf_s(buf, len, len - 1, "%.1f", i);
in Size2Str() 426 if (snprintf_s(path, CMDLINE_PATH_LEN, CMDLINE_PATH_LEN - 1, "/proc/%d/cmdline", pid) <= 0) {
in GetNameByPid() 453 if (snprintf_s(path, STATUS_PATH_LEN, STATUS_PATH_LEN - 1, "/proc/%u/status", pid) <= 0) {
in GetPPidByPid()
|
/base/startup/init/services/modules/bootevent/ |
H A D | bootevent.c | 313 INIT_CHECK_ONLY_ELOG(snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%lld", uptime) >= 0,
in WriteBooteventSysParam() 314 "snprintf_s buf failed");
in WriteBooteventSysParam() 315 INIT_CHECK_ONLY_ELOG(snprintf_s(name, sizeof(name), sizeof(name) - 1, "ohos.boot.time.%s", paramName) >= 0,
in WriteBooteventSysParam() 316 "snprintf_s name failed");
in WriteBooteventSysParam() 534 INIT_CHECK_ONLY_ELOG(snprintf_s(item->paramName, cmdLen, cmdLen - 1, "%s%s",
in AddCmdBootEvent()
|
/base/update/updater/services/fs_manager/ |
H A D | partitions.cpp | 90 if (snprintf_s(nameBuf, DEVPATH_SIZE, DEVPATH_SIZE - 1, "/sys/block/%s/device/%s", in ReadDeviceSysfsFile() 337 if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) == -1) { in NewPartition() 343 snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1) { in NewPartition()
|
/test/xts/hats/powermgr/power/hdi_power/common/ |
H A D | hdi_power_test.cpp | 262 ret = snprintf_s(stateBuf, MAX_PATH, sizeof(stateBuf) - 1, SUSPEND_STATE_PATH.c_str()); in HWTEST_F() 311 ret = snprintf_s(lockBuf, MAX_PATH, sizeof(lockBuf) - 1, LOCK_PATH.c_str()); 339 ret = snprintf_s(unLockBuf, MAX_PATH, sizeof(unLockBuf) - 1, UNLOCK_PATH.c_str());
|
/base/security/device_auth/frameworks/deviceauth_lite/source/struct/ |
H A D | exchange_auth_data.c | 92 if (snprintf_s(ret_str, RET_STR_LENGTH, RET_STR_LENGTH - 1, "{\"%s\":\"%s\", \"%s\":\"%s\"}", FIELD_AUTH_ID, in make_exchange_data()
|
H A D | rmv_auth_info_data.c | 83 if (snprintf_s(ret_str, RET_STR_LENGTH, RET_STR_LENGTH - 1, "{\"%s\":%d,\"%s\":\"%s\"}", FIELD_RMV_TYPE, in make_rmv_auth_info_data()
|
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | param_checker.c | 43 if (snprintf_s(buf, len, len - 1, "parameter=%s pid=%d uid=%u gid=%u", msg->name, msg->ucred->pid, msg->ucred->uid, in SelinuxAuditCallback()
|
/base/startup/init/services/param/base/ |
H A D | param_base.h | 38 snprintf_s((buffer), (buffSize), (buffSize) - 1, (format), ##__VA_ARGS__)
|
/base/tee/tee_client/services/teecd/src/ |
H A D | misc_work_agent.c | 40 errno_t rc = snprintf_s(transControl->Args.GetTime.timeStr, sizeof(transControl->Args.GetTime.timeStr), in GetTimeWork() 46 tloge("snprintf_s error %d\n", rc); in GetTimeWork()
|
/base/update/updater/utils/ |
H A D | write_updater.cpp | 42 if (snprintf_s(boot.update, sizeof(boot.update), sizeof(boot.update) - 1, "--update_package=%s", in ExceptionUpdater() 44 cout << "WriteUpdaterMessage snprintf_s failed!" << endl; in ExceptionUpdater()
|
/base/time/time_service/utils/native/src/ |
H A D | time_file_utils.cpp | 55 if (snprintf_s(path, CMDLINE_PATH_LEN, CMDLINE_PATH_LEN - 1, "/proc/%u/cmdline", pid) <= 0) { in GetNameByPid()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_019.cpp | 40 int ret = snprintf_s(param, TEST_CMD_LEN, TEST_CMD_LEN - 1, "-p %d", pid); in ChildShell()
|
/kernel/liteos_m/testsuites/sample/posix/mqueue/ |
H A D | It_posix_queue_006.c | 43 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, in Testcase()
|
H A D | It_posix_queue_009.c | 40 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, in Testcase()
|
H A D | It_posix_queue_018.c | 44 (void)snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH - 1, MQUEUE_STANDARD_NAME_LENGTH, "/mq018_%d", in Testcase()
|
H A D | It_posix_queue_020.c | 42 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
|