diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index 73b70480b..6fae533b2 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -4620,7 +4620,7 @@ template <> otError Interpreter::Process(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(Arg aArgs[]) if (aArgs[0].IsEmpty()) { - OutputLine("0x%04x", otThreadGetNetworkKeyRef(GetInstancePtr())); + OutputLine("0x%08lx", ToUlong(otThreadGetNetworkKeyRef(GetInstancePtr()))); } else {