diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 17:28:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 17:28:28 +0000 |
commit | 6387939e5c5e4a7c62066264498d80ae2f105aed (patch) | |
tree | 12f112279d1946b66e7779f64fa234e03d337cfe | |
parent | 2009-03-02 Daniel Hellstrom <daniel@gaisler.com> (diff) | |
download | rtems-6387939e5c5e4a7c62066264498d80ae2f105aed.tar.bz2 |
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* cdtest/main.cc: Use printk() in global destructors since printf() no
longer works.
-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 39eaae3b20..185c7bae47 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. + 2009-02-27 Sebastian Huber <Sebastian.Huber@embedded-brains.de> * fileio/init.c: Adapt to modified shell configuration 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--; }; |