Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 27) sorted by relevance

12

/openthread-latest/src/posix/platform/
Dradio.cpp601 cur += snprintf(cur, static_cast<size_t>(end - cur), "%s ", aArgs[index]); in otPlatDiagProcess()
626 snprintf(cmd, sizeof(cmd), "power %d", aTxPower); in otPlatDiagTxPowerSet()
637 snprintf(cmd, sizeof(cmd), "channel %d", aChannel); in otPlatDiagChannelSet()
649 snprintf(cmd, sizeof(cmd), "gpio set %d %d", aGpio, aValue); in otPlatDiagGpioSet()
665 snprintf(cmd, sizeof(cmd), "gpio get %d", aGpio); in otPlatDiagGpioGet()
681snprintf(cmd, sizeof(cmd), "gpio mode %d %s", aGpio, aMode == OT_GPIO_MODE_INPUT ? "in" : "out"); in otPlatDiagGpioSetMode()
697 snprintf(cmd, sizeof(cmd), "gpio mode %d", aGpio); in otPlatDiagGpioGetMode()
744 snprintf(cmd, sizeof(cmd), "powersettings %d", aChannel); in otPlatDiagRadioGetPowerSettings()
746snprintf(fmt, sizeof(fmt), "TargetPower(0.01dBm): %%d\r\nActualPower(0.01dBm): %%d\r\nRawPowerSett… in otPlatDiagRadioGetPowerSettings()
772 nbytes = snprintf(cmd, sizeof(cmd), "rawpowersetting "); in otPlatDiagRadioSetRawPowerSetting()
[all …]
Dtrel.cpp140 cur += snprintf(cur, (uint16_t)(end - cur), "[(len:%d) ", aLength); in BufferToString()
145 cur += snprintf(cur, (uint16_t)(end - cur), "%02x ", *aBuffer++); in BufferToString()
153 cur += snprintf(cur, (uint16_t)(end - cur), "... "); in BufferToString()
Dvirtual_time.cpp76 snprintf(msg, sizeof(msg), "Invalid PORT_OFFSET: %s", offset); in virtualTimeInit()
Drcp_caps_diag.cpp603 snprintf(capName, sizeof(capName), "SPINEL_CAPS_%s", spinel_capability_to_cstr(aFlags[i])); in OutputSpinelCapFlags()
761 snprintf(output, sizeof(output), "%lu bps", ToUlong(speed)); in ProcessSpinelSpeed()
787 snprintf(value, sizeof(value), "%u", aValue); in OutputFormat()
802snprintf(buffer, sizeof(buffer), "%.*s %.*s", kMaxCommandStringLength, commandString, kMaxKeyStrin… in OutputResult()
Dconfig_file.cpp173 snprintf(swapFile, sizeof(swapFile), "%s%s", mFilePath, kSwapSuffix); in Clear()
Ddaemon.cpp69 rval = snprintf(aFilename, sizeof(aFilename), aPattern, netIfName); in GetFilename()
Dspi_interface.cpp212 snprintf(req.consumer_label, sizeof(req.consumer_label), "%s", aLabel); in SetupGpioHandle()
233 snprintf(req.consumer_label, sizeof(req.consumer_label), "%s", aLabel); in SetupGpioEvent()
Dsettings_file.cpp309snprintf(aFileName, kMaxFilePathSize, OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH "/%s.%s", mSettingFile… in GetSettingsFilePath()
Dsettings.cpp93snprintf(fileBaseName, sizeof(fileBaseName), "%s_%" PRIx64, offset == nullptr ? "0" : offset, node… in settingsFileInit()
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names.c17 int snprintf(char *s, size_t n, const char *fmt, ...) in snprintf() function
59 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer()
131 return snprintf(buffer, buffer_size, "%ld", (long) status); in psa_snprint_status()
148 return snprintf(buffer, buffer_size, "0x%02x", (unsigned) curve); in psa_snprint_ecc_curve()
165 return snprintf(buffer, buffer_size, "0x%02x", (unsigned) group); in psa_snprint_dh_group()
/openthread-latest/examples/platforms/utils/
Dlogging_rtt.c103 return snprintf(aLogString, (size_t)aMaxSize, "%s[%010lu]", RTT_COLOR_CODE_CYAN, now); in logTimestamp()
118 return snprintf(aLogString, (size_t)aMaxSize, "%s ", levelToString(aLogLevel)); in logLevel()
/openthread-latest/src/ncp/
Dncp_hdlc.cpp322 snprintf(hexbuf, sizeof(hexbuf), "Framing error %d: [", aError); in HandleError()
331 snprintf(&hexbuf[i * 3], sizeof(hexbuf) - i * 3, " %02X", static_cast<uint8_t>(aBuf[i])); in HandleError()
336 snprintf(&hexbuf[i * 3], sizeof(hexbuf) - i * 3, "]\n"); in HandleError()
/openthread-latest/third_party/mbedtls/repo/configs/ext/
Dtfm_mbedcrypto_config_profile_medium.h386 #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
/openthread-latest/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlin/internal/
Dtarget.h99 # define KRML_HOST_SNPRINTF(buf, sz, fmt, arg) snprintf(buf, sz, fmt, arg)
/openthread-latest/third_party/mbedtls/
Dmbedtls-config.h43 #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
/openthread-latest/examples/platforms/simulation/
Dlogging.c107 offset = snprintf(logString, sizeof(logString), "[%lu]", (unsigned long)gNodeId); in otPlatLog()
Dflash.c73 snprintf(fileName, sizeof(fileName), "%s/%s_%d.flash", path, offset, gNodeId); in otPlatFlashInit()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dhost_test.function261 * \brief Tests snprintf implementation with test input.
266 * potential misuse of snprintf from gcc -Wformat-truncation (observed with
273 * \param ref_ret Expected snprintf return value.
304 * \brief Tests snprintf implementation.
538 * Make sure we have a snprintf that correctly zero-terminates
541 mbedtls_fprintf(stderr, "the snprintf implementation is broken\n");
Dtest_suite_psa_its.function33 * long long support in snprintf. */
/openthread-latest/src/core/api/
Dinstance_api.cpp164 snprintf(sVersion, sizeof(sVersion), "%s/%s ;%s ; %s", PACKAGE_NAME, PACKAGE_VERSION, in otGetVersionString()
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dplatform.h67 #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */
/openthread-latest/third_party/tcplp/lib/test/
Dtest_all.c35 snprintf(&buf_string[i << 1], 3, "%02X", buf[i]); in bmp_test()
/openthread-latest/src/posix/
Dclient.cpp173 … ret = snprintf(sockname.sun_path, sizeof(sockname.sun_path), OPENTHREAD_POSIX_DAEMON_SOCKET_NAME, in ConnectSession()
/openthread-latest/tests/unit/
Dtest_mac_frame.cpp412 …offset = snprintf(string, sizeof(string), "\nver:%s, src[addr:%s, pan:%s], dst[addr:%s, pan:%s], s… in TestMacHeader()
420 … offset += snprintf(string + offset, sizeof(string) - offset, ", seq:%u", frame.GetSequence()); in TestMacHeader()
/openthread-latest/src/cli/
Dcli_history.cpp173 snprintf(&addressString[len], sizeof(addressString) - len, "/%d", info->mPrefixLength); in Process()

12