log: fix typos in header files

This commit is contained in:
Ivan Grokhotkov 2018-01-05 12:58:00 +08:00
parent 6a5c105753
commit 3a6962b8ec
2 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
#endif #endif
/** /**
* @brief Log a buffer of hex bytes at specified level, seprated into 16 bytes each line. * @brief Log a buffer of hex bytes at specified level, separated into 16 bytes each line.
* *
* @param tag description tag * @param tag description tag
* *
@ -124,7 +124,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
if ( LOG_LOCAL_LEVEL >= level ) esp_log_buffer_hex_internal( tag, buffer, buff_len, level ); } while(0) if ( LOG_LOCAL_LEVEL >= level ) esp_log_buffer_hex_internal( tag, buffer, buff_len, level ); } while(0)
/** /**
* @brief Log a buffer of characters at specified level, seprated into 16 bytes each line. Buffer should contain only printable characters. * @brief Log a buffer of characters at specified level, separated into 16 bytes each line. Buffer should contain only printable characters.
* *
* @param tag description tag * @param tag description tag
* *
@ -263,7 +263,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
#define ESP_LOGV( tag, format, ... ) ESP_EARLY_LOGV(tag, format, ##__VA_ARGS__) #define ESP_LOGV( tag, format, ... ) ESP_EARLY_LOGV(tag, format, ##__VA_ARGS__)
#endif // BOOTLOADER_BUILD #endif // BOOTLOADER_BUILD
/** runtime macro to output logs at a speicfied level. /** runtime macro to output logs at a specified level.
* *
* @param tag tag of the log, which can be used to change the log level by ``esp_log_level_set`` at runtime. * @param tag tag of the log, which can be used to change the log level by ``esp_log_level_set`` at runtime.
* *
@ -282,7 +282,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); }\ else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); }\
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); }}while(0) else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); }}while(0)
/** runtime macro to output logs at a speicfied level. Also check the level with ``LOG_LOCAL_LEVEL``. /** runtime macro to output logs at a specified level. Also check the level with ``LOG_LOCAL_LEVEL``.
* *
* @see ``printf``, ``ESP_LOG_LEVEL`` * @see ``printf``, ``ESP_LOG_LEVEL``
*/ */

View file

@ -15,7 +15,7 @@
#ifndef __ESP_LOG_INTERNAL_H__ #ifndef __ESP_LOG_INTERNAL_H__
#define __ESP_LOG_INTERNAL_H__ #define __ESP_LOG_INTERNAL_H__
//these two functions do not check level versus ESP_LOCAL_LEVEL, this should be done in esp_log.h //these functions do not check level versus ESP_LOCAL_LEVEL, this should be done in esp_log.h
void esp_log_buffer_hex_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level); void esp_log_buffer_hex_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
void esp_log_buffer_char_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level); void esp_log_buffer_char_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
void esp_log_buffer_hexdump_internal( const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t log_level); void esp_log_buffer_hexdump_internal( const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t log_level);