@@ -125,7 +125,7 @@ void OTALogic::onOTADataReceived(uint8_t const * const data, size_t const length
125125OTAState OTALogic::handle_Init ()
126126{
127127#ifndef HOST
128- DBG_VERBOSE (__PRETTY_FUNCTION__ );
128+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
129129#endif
130130 if (_ota_storage->init ()) {
131131 return OTAState::Idle;
@@ -146,7 +146,7 @@ OTAState OTALogic::handle_Idle()
146146OTAState OTALogic::handle_StartDownload ()
147147{
148148#ifndef HOST
149- DBG_VERBOSE (__PRETTY_FUNCTION__ );
149+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
150150#endif
151151 if (_ota_storage->open ()) {
152152 return OTAState::WaitForHeader;
@@ -159,7 +159,7 @@ OTAState OTALogic::handle_StartDownload()
159159OTAState OTALogic::handle_WaitForHeader ()
160160{
161161#ifndef HOST
162- DBG_VERBOSE (__PRETTY_FUNCTION__ );
162+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
163163#endif
164164 if (_mqtt_ota_buf.num_bytes >= OTA_BINARY_HEADER_SIZE) {
165165 return OTAState::HeaderReceived;
@@ -190,8 +190,8 @@ OTAState OTALogic::handle_HeaderReceived()
190190 _ota_bin_data.hdr_crc32 = ota_header.header .crc32 ;
191191
192192#ifndef HOST
193- DBG_VERBOSE (" %s: header length = %d" , __PRETTY_FUNCTION__ , _ota_bin_data.hdr_len );
194- DBG_VERBOSE (" %s: header CRC32 = %d " , __PRETTY_FUNCTION__ , _ota_bin_data.hdr_crc32 );
193+ DBG_VERBOSE (" OTALogic:: %s: header length = %d" , __FUNCTION__ , _ota_bin_data.hdr_len );
194+ DBG_VERBOSE (" OTALogic:: %s: header crc32 = %X " , __FUNCTION__ , _ota_bin_data.hdr_crc32 );
195195#endif
196196
197197 /* Reset the counter which is responsible for keeping tabs on how many bytes have been received */
@@ -234,7 +234,7 @@ OTAState OTALogic::handle_BinaryReceived()
234234 _mqtt_ota_buf.num_bytes = 0 ;
235235
236236#ifndef HOST
237- DBG_VERBOSE (" %s: %d bytes written" , __PRETTY_FUNCTION__ , _ota_bin_data.bytes_received );
237+ DBG_VERBOSE (" OTALogic:: %s: %d bytes written" , __FUNCTION__ , _ota_bin_data.bytes_received );
238238#endif
239239
240240 if (_ota_bin_data.bytes_received >= _ota_bin_data.hdr_len ) {
@@ -249,7 +249,7 @@ OTAState OTALogic::handle_BinaryReceived()
249249OTAState OTALogic::handle_Verify ()
250250{
251251#ifndef HOST
252- DBG_VERBOSE (__PRETTY_FUNCTION__ );
252+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
253253#endif
254254 if (_ota_bin_data.crc32 == _ota_bin_data.hdr_crc32 ) {
255255 return OTAState::Rename;
@@ -263,7 +263,7 @@ OTAState OTALogic::handle_Verify()
263263OTAState OTALogic::handle_Rename ()
264264{
265265#ifndef HOST
266- DBG_VERBOSE (__PRETTY_FUNCTION__ );
266+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
267267#endif
268268 if (_ota_storage->rename ()) {
269269 _ota_storage->deinit ();
@@ -286,7 +286,7 @@ OTAState OTALogic::handle_Reset()
286286 * is started directly.
287287 */
288288#ifndef HOST
289- DBG_VERBOSE (__PRETTY_FUNCTION__ );
289+ DBG_VERBOSE (" OTALogic::%s " , __FUNCTION__ );
290290 delay (250 );
291291#endif
292292 NVIC_SystemReset ();
0 commit comments