diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 17:28:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 17:28:35 +0000 |
commit | beda88f83ce3281a5e0903bd29d00295e56581ec (patch) | |
tree | 90ef6f3a666807eee4c4750cb339e9b080c84be2 /testsuites | |
parent | 2009-03-02 Ray Xu <rayx.cn@gmail.com> (diff) | |
download | rtems-beda88f83ce3281a5e0903bd29d00295e56581ec.tar.bz2 |
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* cdtest/main.cc: Use printk() in global destructors since printf() no
longer works.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/samples/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog index 58b10c05e6..beda49cc87 100644 --- a/testsuites/samples/ChangeLog +++ b/testsuites/samples/ChangeLog @@ -1,3 +1,8 @@ +2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com> + + * cdtest/main.cc: Use printk() in global destructors since printf() no + longer works. + 2008-09-06 Ralf Corsépius <ralf.corsepius@rtems.org> * capture/system.h, capture/test1.c, fileio/init.c, diff --git a/testsuites/samples/cdtest/main.cc b/testsuites/samples/cdtest/main.cc index eb5bcea852..668dbbc39a 100644 --- a/testsuites/samples/cdtest/main.cc +++ b/testsuites/samples/cdtest/main.cc @@ -62,11 +62,12 @@ public: virtual ~AClass() { - printf( + // MUST USE PRINTK -- RTEMS IS SHUTTING DOWN WHEN THIS RUNS + printk( "%s: Hey I'm in base class destructor number %d for %p.\n", ptr, num_inst, this ); - print(); + printk("Derived class - %s\n", string); num_inst--; }; @@ -97,12 +98,12 @@ public: ~BClass() { - printf( + printk( "%s: Hey I'm in derived class destructor number %d for %p.\n", ptr, num_inst, this ); - print(); + printk("Derived class - %s\n", string); num_inst--; }; |