Skip to content

Commit a1af44c

Browse files
author
Jyri Sarha
committed
debug: debug_stream_slot: Fix a typo and remove unneeded newlines
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 2993190 commit a1af44c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/debug/debug_stream/debug_stream_slot.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <user/debug_stream.h>
1212
#include <user/debug_stream_slot.h>
1313

14-
LOG_MODULE_REGISTER(debug_strem_slot);
14+
LOG_MODULE_REGISTER(debug_stream_slot);
1515

1616
struct cpu_mutex {
1717
struct k_mutex m;
@@ -52,7 +52,7 @@ int debug_stream_slot_send_record(struct debug_stream_record *rec)
5252
uint32_t record_size = rec->size_words;
5353
uint32_t record_start, buf_remain;
5454

55-
LOG_DBG("Sending record %u id %u len %u\n", rec->seqno, rec->id, rec->size_words);
55+
LOG_DBG("Sending record %u id %u len %u", rec->seqno, rec->id, rec->size_words);
5656

5757
if (!buf)
5858
return -ENODEV;
@@ -92,7 +92,7 @@ int debug_stream_slot_send_record(struct debug_stream_record *rec)
9292

9393
k_mutex_unlock(&cpu_mutex[arch_proc_id()].m);
9494

95-
LOG_DBG("Record %u id %u len %u sent\n", rec->seqno, rec->id, record_size);
95+
LOG_DBG("Record %u id %u len %u sent", rec->seqno, rec->id, record_size);
9696
return 0;
9797
}
9898

@@ -109,7 +109,7 @@ static int debug_stream_slot_init(void)
109109
size_t offset = hdr_size;
110110
int i;
111111

112-
LOG_INF("%u sections of %u bytes, hdr %u, section area %u\n",
112+
LOG_INF("%u sections of %u bytes, hdr %u, section area %u",
113113
CONFIG_MP_MAX_NUM_CPUS, section_size, hdr_size,
114114
section_area_size);
115115

@@ -128,7 +128,7 @@ static int debug_stream_slot_init(void)
128128
(section_size - offsetof(struct debug_stream_circular_buf, data[0]))/
129129
sizeof(uint32_t);
130130
hdr->section_desc[i].offset = offset;
131-
LOG_INF("sections %u, size %u, offset %u\n",
131+
LOG_INF("sections %u, size %u, offset %u",
132132
i, section_size, offset);
133133
offset += section_size;
134134
}
@@ -148,7 +148,7 @@ static int debug_stream_slot_init(void)
148148
* sys_cache_data_flush_range(&cpu_mutex[i], sizeof(cpu_mutex[i]));
149149
*/
150150
}
151-
LOG_INF("Debug stream slot initialized\n");
151+
LOG_INF("Debug stream slot initialized");
152152

153153
return 0;
154154
}

0 commit comments

Comments
 (0)