Changeset 24d0ee57 in rtems for testsuites/samples


Ignore:
Timestamp:
May 20, 2016, 8:39:50 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
1503c1c3
Parents:
b1860df5
git-author:
Chris Johns <chrisj@…> (05/20/16 08:39:50)
git-committer:
Chris Johns <chrisj@…> (05/25/16 05:47:34)
Message:

cpukit, testsuite: Add rtems_printf and rtems_printer support.

This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.

Printk and related functions are made to return a valid number of
characters formatted and output.

The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.

The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.

Location:
testsuites/samples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/capture/init.c

    rb1860df5 r24d0ee57  
    2828
    2929const char rtems_test_name[] = "CAPTURE ENGINE";
     30rtems_printer rtems_test_printer;
    3031
    3132volatile int can_proceed = 1;
     
    4748  rtems_mode          old_mode;
    4849
     50  rtems_print_printer_printf(&rtems_test_printer);
    4951  rtems_test_begin();
    5052
  • testsuites/samples/hello/init.c

    rb1860df5 r24d0ee57  
    2323
    2424const char rtems_test_name[] = "HELLO WORLD";
     25rtems_printer rtems_test_printer;
    2526
    2627rtems_task Init(
     
    2829)
    2930{
     31  rtems_print_printer_printf(&rtems_test_printer);
    3032  rtems_test_begin();
    3133  printf( "Hello World\n" );
  • testsuites/samples/paranoia/init.c

    rb1860df5 r24d0ee57  
    2020
    2121const char rtems_test_name[] = "PARANOIA";
     22rtems_printer rtems_test_printer;
    2223
    2324char *args[2] = { "paranoia", 0 };
     
    3637#endif
    3738
     39  rtems_print_printer_printf(&rtems_test_printer);
    3840  rtems_test_begin();
    3941  paranoia(1, args);
Note: See TracChangeset for help on using the changeset viewer.