[cli] fix printf style output (#8377)

When `OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is enabled.
This commit is contained in:
Jonathan Hui
2022-11-08 11:15:22 +01:00
committed by GitHub
parent 91fa1f455a
commit 73c48595b7
+2 -2
View File
@@ -4620,7 +4620,7 @@ template <> otError Interpreter::Process<Cmd("pskcref")>(Arg aArgs[])
if (aArgs[0].IsEmpty())
{
OutputLine("0x%04x", otThreadGetPskcRef(GetInstancePtr()));
OutputLine("0x%08lx", ToUlong(otThreadGetPskcRef(GetInstancePtr())));
}
else
{
@@ -5040,7 +5040,7 @@ template <> otError Interpreter::Process<Cmd("networkkeyref")>(Arg aArgs[])
if (aArgs[0].IsEmpty())
{
OutputLine("0x%04x", otThreadGetNetworkKeyRef(GetInstancePtr()));
OutputLine("0x%08lx", ToUlong(otThreadGetNetworkKeyRef(GetInstancePtr())));
}
else
{