logging: Make log_strdup() parameter const
The string parameter needs to be const as otherwise calling this function using a const string pointer will lead to a warning. Besides the function does not modify the parameter so should be const anyway. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
bbaa374afa
commit
65477b7391
2 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ int log_printk(const char *fmt, va_list ap);
|
|||
* allocated. String may be truncated if input string does not fit in
|
||||
* a buffer from the pool (see CONFIG_LOG_STRDUP_MAX_STRING).
|
||||
*/
|
||||
char *log_strdup(char *str);
|
||||
char *log_strdup(const char *str);
|
||||
|
||||
#define __DYNAMIC_MODULE_REGISTER(_name)\
|
||||
struct log_source_dynamic_data LOG_ITEM_DYNAMIC_DATA(_name) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue