Home
last modified time | relevance | path

Searched refs:OutputFormat (Results 1 – 25 of 26) sorted by relevance

12

/openthread-latest/src/cli/
Dcli_utils.cpp63 void Utils::OutputFormat(const char *aFormat, ...) in OutputFormat() function in ot::Cli::Utils
72 void Utils::OutputFormat(uint8_t aIndentSize, const char *aFormat, ...) in OutputFormat() function in ot::Cli::Utils
107 void Utils::OutputNewLine(void) { OutputFormat("\r\n"); } in OutputNewLine()
109 void Utils::OutputSpaces(uint8_t aCount) { OutputFormat("%*s", aCount, ""); } in OutputSpaces()
115 OutputFormat("%02x", aBytes[i]); in OutputBytes()
150 OutputFormat("%s", Uint64ToString(aUint64, buffer)); in OutputUint64()
169 return OutputFormat("%s", string); in OutputIp6Address()
184 OutputFormat("%s", string); in OutputIp6Prefix()
195OutputFormat("%x:%x:%x:%x::/64", (aPrefix.m8[0] << 8) | aPrefix.m8[1], (aPrefix.m8[2] << 8) | aPre… in OutputIp6Prefix()
211 return OutputFormat("%s", string); in OutputSockAddr()
[all …]
Dcli_mesh_diag.cpp312 OutputFormat("id:%02u rloc16:0x%04x ext-addr:", aRouterInfo->mRouterId, aRouterInfo->mRloc16); in HandleMeshDiagDiscoverDone()
317 OutputFormat(" ver:%u", aRouterInfo->mVersion); in HandleMeshDiagDiscoverDone()
322 OutputFormat(" - me"); in HandleMeshDiagDiscoverDone()
327 OutputFormat(" - parent"); in HandleMeshDiagDiscoverDone()
332 OutputFormat(" - leader"); in HandleMeshDiagDiscoverDone()
337 OutputFormat(" - br"); in HandleMeshDiagDiscoverDone()
357 OutputFormat(kIndentSize, "%u-links:{ ", linkQuality); in HandleMeshDiagDiscoverDone()
363 OutputFormat("%02u ", id); in HandleMeshDiagDiscoverDone()
398OutputFormat(kIndentSize * 2, "rloc16:0x%04x lq:%u, mode:%s", childInfo.mRloc16, childInfo.mLinkQu… in HandleMeshDiagDiscoverDone()
403 OutputFormat(" - me"); in HandleMeshDiagDiscoverDone()
[all …]
Dcli.cpp713 OutputFormat("BorderAgent callback: Ephemeral key %sactive", active ? "" : "in"); in HandleBorderAgentEphemeralKeyStateChange()
717 OutputFormat(", port:%u", otBorderAgentGetUdpPort(GetInstancePtr())); in HandleBorderAgentEphemeralKeyStateChange()
889 OutputFormat("| %08lx%08lx ", ToUlong(static_cast<uint32_t>(mapping.mId >> 32)), in Process()
891 OutputFormat("| %40s ", ip6AddressString); in Process()
892 OutputFormat("| %16s ", ip4AddressString); in Process()
893 OutputFormat("| %5lus ", ToUlong(mapping.mRemainingTimeMs / 1000)); in Process()
896 OutputFormat("| %16s ", ""); in Process()
897 OutputFormat("| %68s ", "TCP"); in Process()
900 OutputFormat("| %16s ", ""); in Process()
901 OutputFormat("| %68s ", "UDP"); in Process()
[all …]
Dcli_br.cpp213 OutputFormat("%s", outputPrefixTypes == kPrefixTypeLocal ? "" : "Local: "); in Process()
234 OutputFormat("%s", outputPrefixTypes == kPrefixTypeFavored ? "" : "Favored: "); in Process()
292 OutputFormat("%s", outputPrefixTypes == kPrefixTypeLocal ? "" : "Local: "); in Process()
312 OutputFormat("%s", outputPrefixTypes == kPrefixTypeFavored ? "" : "Favored: "); in Process()
358 OutputFormat("%s", outputPrefixTypes == kPrefixTypeLocal ? "" : "Local: "); in Process()
379 OutputFormat("%s", outputPrefixTypes == kPrefixTypeFavored ? "" : "Favored: "); in Process()
509OutputFormat("prefix:%s, on-link:%s, ms-since-rx:%lu, lifetime:%lu, ", string, entry.mIsOnLink ? "… in Process()
514 OutputFormat("preferred:%lu, ", ToUlong(entry.mPreferredLifetime)); in Process()
518 OutputFormat("route-prf:%s, ", PreferenceToString(entry.mRoutePreference)); in Process()
521 OutputFormat("router:"); in Process()
[all …]
Dcli_history.cpp408OutputFormat(isList ? "%s -> type:%s event:%s extaddr:" : "| %20s | %-6s | %-9s | ", ageString, in Process()
549OutputFormat(isList ? "%s -> event:%s router:%u(0x%04x) nexthop:" : "| %20s | %-14s | %2u (0x%04x)… in Process()
555 OutputFormat(isList ? "%u(0x%04x)" : "%2u (0x%04x)", info->mNextHop, in Process()
560 OutputFormat(isList ? "%s" : "%11s", "none"); in Process()
565 OutputFormat(isList ? " old-cost:%u" : " | %3u ->", info->mOldPathCost); in Process()
569 OutputFormat(isList ? " old-cost:inf" : " | inf ->"); in Process()
1185OutputFormat(kIndentSize, "type:%s len:%u checksum:0x%04x sec:%s prio:%s ", MessageTypeToString(aI… in OutputRxTxEntryListFormat()
1190 OutputFormat("rss:%d", aInfo.mAveRxRss); in OutputRxTxEntryListFormat()
1194 OutputFormat("tx-success:%s", aInfo.mTxSuccess ? "yes" : "no"); in OutputRxTxEntryListFormat()
1199 OutputFormat(kIndentSize, "src:"); in OutputRxTxEntryListFormat()
[all …]
Dcli_network_data.cpp117 OutputFormat(" %s", flagsString); in OutputPrefix()
155 OutputFormat(" %s", flagsString); in OutputRoute()
163 OutputFormat("%lu ", ToUlong(aConfig.mEnterpriseNumber)); in OutputService()
165 OutputFormat(" "); in OutputService()
170 OutputFormat(" s"); in OutputService()
650 dataset.mIsSessionIdSet ? OutputFormat("%u ", dataset.mSessionId) : OutputFormat("- "); in OutputNetworkData()
651 dataset.mIsLocatorSet ? OutputFormat("%04x ", dataset.mLocator) : OutputFormat("- "); in OutputNetworkData()
652 dataset.mIsJoinerUdpPortSet ? OutputFormat("%u ", dataset.mJoinerUdpPort) : OutputFormat("- "); in OutputNetworkData()
654 : OutputFormat("-"); in OutputNetworkData()
658 OutputFormat(" e"); in OutputNetworkData()
Dcli_srp_server.cpp340 OutputFormat("addresses: ["); in Process()
349 OutputFormat(", "); in Process()
367 OutputFormat("["); in OutputHostAddresses()
372 OutputFormat(", "); in OutputHostAddresses()
377 OutputFormat("]"); in OutputHostAddresses()
450 OutputFormat(kIndentSize, "subtypes: "); in Process()
463 OutputFormat("%s%s", hasSubType ? "," : "", subLabel); in Process()
477 OutputFormat(kIndentSize, "TXT: "); in Process()
483 OutputFormat(kIndentSize, "addresses: "); in Process()
Dcli_ping.cpp103 OutputFormat("Pinging synthesized IPv6 address: "); in Process()
210 OutputFormat("%u bytes from ", static_cast<uint16_t>(aReply->mSize + sizeof(otIcmp6Header))); in HandlePingReply()
222OutputFormat("%u packets transmitted, %u packets received.", aStatistics->mSentCount, aStatistics-… in HandlePingStatistics()
230 OutputFormat(" Packet loss = %lu.%u%%.", ToUlong(packetLossRate / 10), in HandlePingStatistics()
239 OutputFormat(" Round-trip min/avg/max = %u/%u.%u/%u ms.", aStatistics->mMinRoundTripTime, in HandlePingStatistics()
Dcli_coap.cpp127 OutputFormat(" with payload: "); in PrintPayload()
256 OutputFormat("sending coap notification to "); in Process()
866 OutputFormat("coap request from "); in HandleRequest()
868 OutputFormat(" "); in HandleRequest()
873 OutputFormat("GET"); in HandleRequest()
883 OutputFormat(" OBS="); in HandleRequest()
897 OutputFormat("DELETE"); in HandleRequest()
901 OutputFormat("PUT"); in HandleRequest()
905 OutputFormat("POST"); in HandleRequest()
1053 OutputFormat("Received ACK in reply to notification from "); in HandleNotificationResponse()
[all …]
Dcli_dns.cpp138 OutputFormat("Server: "); in Process()
435 OutputFormat("Synthesized IPv6 DNS server address: "); in GetDnsConfig()
533 OutputFormat("DNS response for %s - ", hostName); in HandleDnsAddressResponse()
542 OutputFormat(" TTL:%lu ", ToUlong(ttl)); in HandleDnsAddressResponse()
558 OutputFormat(aIndentSize, "HostAddress:"); in OutputDnsServiceInfo()
561 OutputFormat(aIndentSize, "TXT:"); in OutputDnsServiceInfo()
569 OutputFormat("["); in OutputDnsServiceInfo()
571 OutputFormat("...]"); in OutputDnsServiceInfo()
Dcli_commissioner.cpp164 OutputFormat("| %21s", "*"); in Process()
168 OutputFormat("| "); in Process()
173 OutputFormat("| 0x%08lx%08lx/%2u", in Process()
180OutputFormat(" | %32s | %10lu |", joinerInfo.mPskd.m8, ToUlong(joinerInfo.mExpirationTime)); in Process()
621 OutputFormat("Commissioner: Joiner %s ", Stringify(aEvent, kEventStrings)); in HandleJoinerEvent()
714 OutputFormat("Energy: %08lx ", ToUlong(aChannelMask)); in HandleEnergyReport()
718 OutputFormat("%d ", static_cast<int8_t>(aEnergyList[i])); in HandleEnergyReport()
Dcli_dataset.cpp616 OutputFormat("%s: ", title.mTitle); in Print()
987 OutputFormat("%u ", aSecurityPolicy.mRotationTime); in OutputSecurityPolicy()
991 OutputFormat("o"); in OutputSecurityPolicy()
996 OutputFormat("n"); in OutputSecurityPolicy()
1001 OutputFormat("r"); in OutputSecurityPolicy()
1006 OutputFormat("c"); in OutputSecurityPolicy()
1011 OutputFormat("C"); in OutputSecurityPolicy()
1016 OutputFormat("e"); in OutputSecurityPolicy()
1021 OutputFormat("p"); in OutputSecurityPolicy()
1026 OutputFormat("R"); in OutputSecurityPolicy()
Dcli_srp_client.cpp783 OutputFormat(aIndentSize, "name:"); in OutputHostInfo()
787 OutputFormat("\"%s\"", aHostInfo.mName); in OutputHostInfo()
791 OutputFormat("(null)"); in OutputHostInfo()
794 OutputFormat(", state:%s, addrs:", otSrpClientItemStateToString(aHostInfo.mState)); in OutputHostInfo()
802 OutputFormat("["); in OutputHostInfo()
808 OutputFormat(", "); in OutputHostInfo()
829 OutputFormat(aIndentSize, "instance:\"%s\", name:\"%s", aService.mInstanceName, aService.mName); in OutputService()
835 OutputFormat(",%s", aService.mSubTypeLabels[index]); in OutputService()
Dcli_udp.cpp141 OutputFormat("Connecting to synthesized IPv6 address: "); in Process()
278 OutputFormat("Sending to synthesized IPv6 address: "); in Process()
466 OutputFormat("%d bytes from ", otMessageGetLength(aMessage) - otMessageGetOffset(aMessage)); in HandleUdpReceive()
468 OutputFormat(" %d ", aMessageInfo->mPeerPort); in HandleUdpReceive()
Dcli_coap_secure.cpp76 OutputFormat(" with payload: "); in PrintPayload()
825 OutputFormat("coaps request from "); in HandleRequest()
827 OutputFormat(" "); in HandleRequest()
832 OutputFormat("GET"); in HandleRequest()
844 OutputFormat("DELETE"); in HandleRequest()
848 OutputFormat("PUT"); in HandleRequest()
852 OutputFormat("POST"); in HandleRequest()
948 OutputFormat("coaps response from "); in HandleResponse()
Dcli_mdns.cpp96 OutputFormat(kIndentSize, " "); in OutputHost()
129 OutputFormat(kIndentSize, "txt-data: "); in OutputService()
145 OutputFormat(kIndentSize, "key-data: "); in OutputKey()
671 OutputFormat("mDNS browse result for %s", aResult.mServiceType); in HandleBrowseResult()
785 OutputFormat(kIndentSize, "txt-data: "); in HandleTxtResult()
837 OutputFormat(kIndentSize, " "); in HandleAddressResult()
910 OutputFormat("Browser %s", browser.mServiceType); in Process()
914 OutputFormat(" for sub-type %s", browser.mSubTypeLabel); in Process()
Dcli_link_metrics.cpp483 OutputFormat("Received Link Metrics Report from: "); in HandleLinkMetricsReport()
542 OutputFormat("Received Link Metrics Management Response from: "); in HandleLinkMetricsMgmtResponse()
560OutputFormat("Received Link Metrics data in Enh Ack from neighbor, short address:0x%02x , extended… in HandleLinkMetricsEnhAckProbingIe()
Dcli_mac_filter.cpp52 OutputFormat("Address Mode: "); in OutputFilter()
128 OutputFormat(" : rss %d (lqi %d)", aEntry.mRssIn, in OutputEntry()
Dcli_tcp.cpp404 OutputFormat("Connecting to synthesized IPv6 address: "); in Process()
551 OutputFormat("TCP Benchmark Status: "); in Process()
1054 OutputFormat("TCP: Ignoring incoming connection request from "); in HandleTcpAcceptReady()
1100 OutputFormat("Accepted connection from "); in HandleTcpAcceptDone()
Dcli_utils.hpp226 void OutputFormat(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
236 …void OutputFormat(uint8_t aIndentSize, const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_C…
Dcli_bbr.cpp454 OutputFormat("BBR Primary:"); in Process()
/openthread-latest/src/posix/platform/
Drcp_caps_diag.hpp132 void OutputFormat(const char *aName, const char *aValue);
133 void OutputFormat(const char *aName, uint32_t aValue);
Drcp_caps_diag.cpp559OutputFormat(RadioCapbilityToString(aFlags[i]), SupportToString((aRadioCaps & aFlags[i]) > 0)); in OutputRadioCapFlags()
604OutputFormat(capName, SupportToString(IsSpinelCapabilitySupported(aCapsData, aCapsLength, aFlags[i… in OutputSpinelCapFlags()
660 OutputFormat("ShortSrcMatchTableSize", num); in OutputShortSrcMatchTableSize()
686 OutputFormat("ExtendedSrcMatchTableSize", num); in OutputExtendedSrcMatchTableSize()
762 OutputFormat("SpinelSpeed", output); in ProcessSpinelSpeed()
770 void RcpCapsDiag::OutputFormat(const char *aName, const char *aValue) in OutputFormat() function in ot::Posix::RcpCapsDiag
782 void RcpCapsDiag::OutputFormat(const char *aName, uint32_t aValue) in OutputFormat() function in ot::Posix::RcpCapsDiag
788 OutputFormat(aName, value); in OutputFormat()
804 OutputFormat(buffer, otThreadErrorToString(error)); in OutputResult()
Ddaemon.hpp55 int OutputFormat(const char *aFormat, ...);
Ddaemon.cpp80 int Daemon::OutputFormat(const char *aFormat, ...) in OutputFormat() function in ot::Posix::Daemon
398 OutputFormat("Error: CLI is disabled!\n"); in Process()

12