diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index 7ba0319a1..ff9453d9a 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -1817,7 +1817,7 @@ void Interpreter::ProcessPanId(int argc, char *argv[]) if (argc == 0) { - mServer->OutputFormat("%04x\r\n", otLinkGetPanId(mInstance)); + mServer->OutputFormat("0x%04x\r\n", otLinkGetPanId(mInstance)); } else {