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
1616struct 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