Ignore:
Timestamp:
Mar 2, 2009, 5:28:35 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
73d1f07
Parents:
66c25d4
Message:

2009-03-02 Joel Sherrill <joel.sherrill@…>

  • cdtest/main.cc: Use printk() in global destructors since printf() no longer works.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/cdtest/main.cc

    r66c25d4 rbeda88f  
    6363    virtual ~AClass()
    6464    {
    65         printf(
     65        // MUST USE PRINTK -- RTEMS IS SHUTTING DOWN WHEN THIS RUNS
     66        printk(
    6667          "%s: Hey I'm in base class destructor number %d for %p.\n",
    6768          ptr, num_inst, this
    6869        );
    69         print();
     70        printk("Derived class - %s\n", string);
    7071        num_inst--;
    7172    };
     
    9899    ~BClass()
    99100    {
    100         printf(
     101        printk(
    101102          "%s: Hey I'm in derived class destructor number %d for %p.\n",
    102103          ptr, num_inst,
    103104          this
    104105        );
    105               print();
     106        printk("Derived class - %s\n", string);
    106107        num_inst--;
    107108    };
Note: See TracChangeset for help on using the changeset viewer.