Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of azure_c_shared_utility by
Revision 17:9051ba70fc73, committed 2017-01-08
- Comitter:
- AzureIoTClient
- Date:
- Sun Jan 08 11:12:54 2017 -0800
- Parent:
- 16:18e7ebd42bb2
- Child:
- 18:6d8a413a4d9a
- Commit message:
- 1.1.3
Changed in this revision
| azure_c_shared_utility/xlogging.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/azure_c_shared_utility/xlogging.h Wed Dec 14 16:00:59 2016 -0800
+++ b/azure_c_shared_utility/xlogging.h Sun Jan 08 11:12:54 2017 -0800
@@ -41,9 +41,9 @@
#define UNUSED(x) (void)(x)
#elif defined(ARDUINO_ARCH_ESP8266)
/*
-The ESP8266 compiler dont do a good job compiling this code, it do not understand that the format is
-a cont char* and moves it to the RAM as a global variable, increasing a lot the .bss. So, we create a
-specific LogInfo that explicitly pin the format on the PROGMEM (flash) using a _localFORMAT variable
+The ESP8266 compiler donât do a good job compiling this code, it do not understand that the âformatâ is
+a âcont char*â and moves it to the RAM as a global variable, increasing a lot the .bss. So, we create a
+specific LogInfo that explicitly pin the âformatâ on the PROGMEM (flash) using a _localFORMAT variable
with the macro PSTR.
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
@@ -51,7 +51,7 @@
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
const char* __localFORMAT = PSTR(FORMAT);
-On the other hand, vsprintf do not support the pinned format and os_printf do not works with va_list,
+On the other hand, vsprintf do not support the pinned âformatâ and os_printf do not works with va_list,
so we compacted the log in the macro LogInfo.
*/
#include "esp8266/azcpgmspace.h"
@@ -141,11 +141,11 @@
/**
* @brief Print the memory content byte pre byte in hexadecimal and as a char it the byte correspond to any printable ASCII chars.
*
- * This function prints the size bytes in the buf to the log. It will print in portions of 16 bytes,
+ * This function prints the âsizeâ bytes in the âbufâ to the log. It will print in portions of 16 bytes,
* and will print the byte as a hexadecimal value, and, it is a printable, this function will print
* the correspondent ASCII character.
- * Non printable characters will shows as a single ..
- * For this function, printable characters are all characters between (0x20) and ~ (0x7E).
+ * Non printable characters will shows as a single â.â.
+ * For this function, printable characters are all characters between â â (0x20) and â~â (0x7E).
*
* @param buf Pointer to the memory address with the buffer to print.
* @param size Number of bytes to print.
