@@ -180,11 +180,11 @@ extern "C" {
180180 * Initialize trace functionality
181181 * @return 0 when all success, otherwise non zero
182182 */
183- int mbed_trace_init ( void );
183+ int mbed_trace_init (void );
184184/**
185185 * Free trace memory
186186 */
187- void mbed_trace_free ( void );
187+ void mbed_trace_free (void );
188188/**
189189 * Resize buffers (line / tmp ) sizes
190190 * @param lineLength new maximum length for trace line (0 = do no resize)
@@ -226,7 +226,7 @@ uint8_t mbed_trace_config_get(void);
226226 * char* trace_time(){ return "rtc-time-in-string"; }
227227 * mbed_trace_prefix_function_set( &trace_time );
228228 */
229- void mbed_trace_prefix_function_set ( char * (* pref_f )(size_t ) );
229+ void mbed_trace_prefix_function_set (char * (* pref_f )(size_t ));
230230/**
231231 * Set trace suffix function
232232 * suffix -function return string with null terminated
@@ -235,18 +235,18 @@ void mbed_trace_prefix_function_set( char* (*pref_f)(size_t) );
235235 * char* trace_suffix(){ return " END"; }
236236 * mbed_trace_suffix_function_set( &trace_suffix );
237237 */
238- void mbed_trace_suffix_function_set (char * (* suffix_f )(void ) );
238+ void mbed_trace_suffix_function_set (char * (* suffix_f )(void ));
239239/**
240240 * Set trace print function
241241 * By default, trace module print using printf() function,
242242 * but with this you can write own print function,
243243 * for e.g. to other IO device.
244244 */
245- void mbed_trace_print_function_set ( void (* print_f )(const char * ) );
245+ void mbed_trace_print_function_set (void (* print_f )(const char * ) );
246246/**
247247 * Set trace print function for tr_cmdline()
248248 */
249- void mbed_trace_cmdprint_function_set ( void (* printf )(const char * ) );
249+ void mbed_trace_cmdprint_function_set (void (* printf )(const char * ) );
250250/**
251251 * Set trace mutex wait function
252252 * By default, trace calls are not thread safe.
@@ -270,10 +270,10 @@ void mbed_trace_mutex_release_function_set(void (*mutex_release_f)(void));
270270 * mbed_trace_exclude_filters_set("mygr");
271271 * mbed_tracef(TRACE_ACTIVE_LEVEL_DEBUG, "ougr", "This is not printed");
272272 */
273- void mbed_trace_exclude_filters_set (char * filters );
273+ void mbed_trace_exclude_filters_set (char * filters );
274274/** get trace exclude filters
275275 */
276- const char * mbed_trace_exclude_filters_get (void );
276+ const char * mbed_trace_exclude_filters_get (void );
277277/**
278278 * When trace group contains text in filter,
279279 * trace will be printed.
@@ -282,10 +282,10 @@ const char* mbed_trace_exclude_filters_get(void);
282282 * mbed_tracef(TRACE_ACTIVE_LEVEL_DEBUG, "mygr", "Hi There");
283283 * mbed_tracef(TRACE_ACTIVE_LEVEL_DEBUG, "grp2", "This is not printed");
284284 */
285- void mbed_trace_include_filters_set (char * filters );
285+ void mbed_trace_include_filters_set (char * filters );
286286/** get trace include filters
287287 */
288- const char * mbed_trace_include_filters_get (void );
288+ const char * mbed_trace_include_filters_get (void );
289289/**
290290 * General trace function
291291 * This should be used every time when user want to print out something important thing
@@ -298,9 +298,9 @@ const char* mbed_trace_include_filters_get(void);
298298 * @param ... variable arguments related to fmt
299299 */
300300#if defined(__GNUC__ ) || defined(__CC_ARM )
301- void mbed_tracef (uint8_t dlevel , const char * grp , const char * fmt , ...) __attribute__ ((__format__ (__printf__ , 3 , 4 )));
301+ void mbed_tracef (uint8_t dlevel , const char * grp , const char * fmt , ...) __attribute__((__format__ (__printf__ , 3 , 4 )));
302302#else
303- void mbed_tracef (uint8_t dlevel , const char * grp , const char * fmt , ...);
303+ void mbed_tracef (uint8_t dlevel , const char * grp , const char * fmt , ...);
304304#endif
305305/**
306306 * General trace function
@@ -318,16 +318,16 @@ void mbed_tracef(uint8_t dlevel, const char* grp, const char *fmt, ...);
318318 * @param ap variable arguments list (like vprintf)
319319 */
320320#if defined(__GNUC__ ) || defined(__CC_ARM )
321- void mbed_vtracef (uint8_t dlevel , const char * grp , const char * fmt , va_list ap ) __attribute__ ((__format__ (__printf__ , 3 , 0 )));
321+ void mbed_vtracef (uint8_t dlevel , const char * grp , const char * fmt , va_list ap ) __attribute__((__format__ (__printf__ , 3 , 0 )));
322322#else
323- void mbed_vtracef (uint8_t dlevel , const char * grp , const char * fmt , va_list ap );
323+ void mbed_vtracef (uint8_t dlevel , const char * grp , const char * fmt , va_list ap );
324324#endif
325325
326326
327327/**
328328 * Get last trace from buffer
329329 */
330- const char * mbed_trace_last (void );
330+ const char * mbed_trace_last (void );
331331#if MBED_CONF_MBED_TRACE_FEA_IPV6 == 1
332332/**
333333 * mbed_tracef helping function for convert ipv6
@@ -339,7 +339,7 @@ const char* mbed_trace_last(void);
339339 * @param add_ptr IPv6 Address pointer
340340 * @return temporary buffer where ipv6 is in string format
341341 */
342- char * mbed_trace_ipv6 (const void * addr_ptr );
342+ char * mbed_trace_ipv6 (const void * addr_ptr );
343343/**
344344 * mbed_tracef helping function for print ipv6 prefix
345345 * usage e.g.
@@ -350,7 +350,7 @@ char* mbed_trace_ipv6(const void *addr_ptr);
350350 * @param prefix_len prefix length
351351 * @return temporary buffer where ipv6 is in string format
352352 */
353- char * mbed_trace_ipv6_prefix (const uint8_t * prefix , uint8_t prefix_len );
353+ char * mbed_trace_ipv6_prefix (const uint8_t * prefix , uint8_t prefix_len );
354354#endif
355355/**
356356 * mbed_tracef helping function for convert hex-array to string.
@@ -364,7 +364,7 @@ char* mbed_trace_ipv6_prefix(const uint8_t *prefix, uint8_t prefix_len);
364364 * if array as string not fit to temp buffer, this function write '*' as last character,
365365 * which indicate that buffer is too small for array.
366366 */
367- char * mbed_trace_array (const uint8_t * buf , uint16_t len );
367+ char * mbed_trace_array (const uint8_t * buf , uint16_t len );
368368
369369#ifdef __cplusplus
370370}
0 commit comments