From 6387939e5c5e4a7c62066264498d80ae2f105aed Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Mar 2009 17:28:28 +0000 Subject: 2009-03-02 Joel Sherrill * cdtest/main.cc: Use printk() in global destructors since printf() no longer works. --- testsuites/samples/ChangeLog | 5 +++++ 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 + + * cdtest/main.cc: Use printk() in global destructors since printf() no + longer works. + 2009-02-27 Sebastian Huber * 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--; }; -- cgit v1.2.3