From 68d83fbfd997cba38ef65ac9f1ff26197323fe12 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 24 May 2018 01:59:05 -0700 Subject: [PATCH] [logging] fix logging in LinkRaw class (#2736) --- src/core/api/link_raw_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/api/link_raw_api.cpp b/src/core/api/link_raw_api.cpp index 086fbb666..8cfc223e9 100644 --- a/src/core/api/link_raw_api.cpp +++ b/src/core/api/link_raw_api.cpp @@ -69,7 +69,7 @@ otError LinkRaw::SetEnabled(bool aEnabled) { otError error = OT_ERROR_NONE; - otLogInfoPlat(mInstance, "LinkRaw Enabled=%d", aEnabled ? 1 : 0); + otLogInfoPlat(&mInstance, "LinkRaw Enabled=%d", aEnabled ? 1 : 0); #if OPENTHREAD_MTD || OPENTHREAD_FTD VerifyOrExit(!static_cast(mInstance).GetThreadNetif().IsUp(), error = OT_ERROR_INVALID_STATE); @@ -338,7 +338,7 @@ void LinkRaw::TransmitStarted(otRadioFrame *aFrame) if (static_cast(aFrame)->GetAckRequest() && !(otPlatRadioGetCaps(&mInstance) & OT_RADIO_CAPS_ACK_TIMEOUT)) { - otLogDebgPlat(aInstance, "LinkRaw Starting AckTimeout Timer"); + otLogDebgPlat(&mInstance, "LinkRaw Starting AckTimeout Timer"); mTimerReason = kTimerReasonAckTimeout; mTimer.Start(Mac::kAckTimeout); }