Changeset 047e8aa in rtems for testsuites/support


Ignore:
Timestamp:
Jan 19, 2018, 8:53:18 AM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3205fd6
Parents:
e6d89860
Message:

tests: Remove unused locked_printk()

Location:
testsuites/support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/test_support.h

    re6d89860 r047e8aa  
    7575int locked_vprintf(const char *fmt, va_list ap);
    7676
    77 void locked_printk(const char *fmt, ...);
    78 
    7977#ifdef __cplusplus
    8078};
  • testsuites/support/src/locked_print.c

    re6d89860 r047e8aa  
    102102  return rv;
    103103}
    104 
    105 void locked_printk(const char *fmt, ...)
    106 {
    107   va_list           ap;       /* points to each unnamed argument in turn */
    108   rtems_status_code sc;
    109 
    110 
    111   locked_print_initialize();
    112 
    113   /* Lock semaphore without releasing the cpu */
    114   do {
    115     sc = rtems_semaphore_obtain( locked_print_semaphore, RTEMS_NO_WAIT, 0 );
    116   } while (sc != RTEMS_SUCCESSFUL );
    117 
    118   va_start(ap, fmt); /* make ap point to 1st unnamed arg */
    119   vprintk(fmt, ap);
    120   va_end(ap);        /* clean up when done */
    121 
    122   /* Release the semaphore  */
    123   rtems_semaphore_release( locked_print_semaphore );
    124 }
Note: See TracChangeset for help on using the changeset viewer.