logging: log_minimal: Fix violations to 21.2 and 8.3
Just renaming the function parameter fix two violations, one is caused because the parameter name is different from the declaration the other violation is because the identifier was starting with underscore. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
ed6e016251
commit
8c5a9ffaab
1 changed files with 4 additions and 4 deletions
|
@ -49,18 +49,18 @@ static void minimal_hexdump_line_print(const char *data, size_t length)
|
||||||
printk("\n");
|
printk("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void z_log_minimal_hexdump_print(int level, const void *_data, size_t size)
|
void z_log_minimal_hexdump_print(int level, const void *data, size_t size)
|
||||||
{
|
{
|
||||||
const char *data = (const char *)_data;
|
const char *data_buffer = (const char *)data;
|
||||||
while (size > 0U) {
|
while (size > 0U) {
|
||||||
printk("%c: ", z_log_minimal_level_to_char(level));
|
printk("%c: ", z_log_minimal_level_to_char(level));
|
||||||
minimal_hexdump_line_print(data, size);
|
minimal_hexdump_line_print(data_buffer, size);
|
||||||
|
|
||||||
if (size < HEXDUMP_BYTES_IN_LINE) {
|
if (size < HEXDUMP_BYTES_IN_LINE) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
size -= HEXDUMP_BYTES_IN_LINE;
|
size -= HEXDUMP_BYTES_IN_LINE;
|
||||||
data += HEXDUMP_BYTES_IN_LINE;
|
data_buffer += HEXDUMP_BYTES_IN_LINE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue