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 /testsuites/samples/cdtest/main.cc | |
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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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--; }; |