From 7068e456dd3aa17a72f42f6fccedf553577c580d Mon Sep 17 00:00:00 2001 From: Kari Haapalehto Date: Mon, 7 Jan 2019 10:48:46 +0200 Subject: [PATCH] Correcting the error-case trace from mesh-api interfaces --- features/nanostack/mbed-mesh-api/source/LoWPANNDInterface.cpp | 2 +- features/nanostack/mbed-mesh-api/source/ThreadInterface.cpp | 2 +- features/nanostack/mbed-mesh-api/source/WisunInterface.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/nanostack/mbed-mesh-api/source/LoWPANNDInterface.cpp b/features/nanostack/mbed-mesh-api/source/LoWPANNDInterface.cpp index d660b0968d..97ea085f86 100644 --- a/features/nanostack/mbed-mesh-api/source/LoWPANNDInterface.cpp +++ b/features/nanostack/mbed-mesh-api/source/LoWPANNDInterface.cpp @@ -184,7 +184,7 @@ MBED_WEAK MeshInterface *MeshInterface::get_target_default_instance() if (!inited) { nsapi_error_t result = interface.initialize(&NanostackRfPhy::get_default_instance()); if (result != 0) { - tr_error("LoWPANND initialize failed: %d", error); + tr_error("LoWPANND initialize failed: %d", result); singleton_unlock(); return NULL; } diff --git a/features/nanostack/mbed-mesh-api/source/ThreadInterface.cpp b/features/nanostack/mbed-mesh-api/source/ThreadInterface.cpp index 608af2462a..9f7bec8239 100644 --- a/features/nanostack/mbed-mesh-api/source/ThreadInterface.cpp +++ b/features/nanostack/mbed-mesh-api/source/ThreadInterface.cpp @@ -278,7 +278,7 @@ MBED_WEAK MeshInterface *MeshInterface::get_target_default_instance() if (!inited) { nsapi_error_t result = interface.initialize(&NanostackRfPhy::get_default_instance()); if (result != 0) { - tr_error("Thread initialize failed: %d", error); + tr_error("Thread initialize failed: %d", result); singleton_unlock(); return NULL; } diff --git a/features/nanostack/mbed-mesh-api/source/WisunInterface.cpp b/features/nanostack/mbed-mesh-api/source/WisunInterface.cpp index 83fdedc1be..cd7570c76d 100644 --- a/features/nanostack/mbed-mesh-api/source/WisunInterface.cpp +++ b/features/nanostack/mbed-mesh-api/source/WisunInterface.cpp @@ -184,7 +184,7 @@ MBED_WEAK MeshInterface *MeshInterface::get_target_default_instance() if (!inited) { nsapi_error_t result = interface.initialize(&NanostackRfPhy::get_default_instance()); if (result != 0) { - tr_error("Wi-SUN initialize failed: %d", error); + tr_error("Wi-SUN initialize failed: %d", result); singleton_unlock(); return NULL; }