Changeset e16e0d59 in mainline for kernel/generic/src/synch/spinlock.c


Ignore:
Timestamp:
2009-03-17T20:33:18Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5eb90cb
Parents:
b1c8dc0
Message:

Make optionality of symbol information less intrusive per Jakub's request. Also, improve symtab function names and update their semantics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/spinlock.c

    rb1c8dc0 re16e0d59  
    4343#include <print.h>
    4444#include <debug.h>
    45 
    46 #ifdef CONFIG_SYMTAB
    4745#include <symtab.h>
    48 #endif
    4946
    5047#ifdef CONFIG_FB
     
    8178        count_t i = 0;
    8279        bool deadlock_reported = false;
    83 #ifdef CONFIG_SYMTAB
    84         char *symbol;
    85 #endif
    8680
    8781        preemption_disable();
     
    112106#endif
    113107                if (i++ > DEADLOCK_THRESHOLD) {
    114                         printf("cpu%u: looping on spinlock %" PRIp ":%s, caller=%" PRIp,
    115                                 CPU->id, sl, sl->name, CALLER);
    116 #ifdef CONFIG_SYMTAB
    117                         symbol = get_symtab_entry(CALLER);
    118                         if (symbol)
    119                                 printf("(%s)", symbol);
    120 #endif
    121                         printf("\n");
     108                        printf("cpu%u: looping on spinlock %" PRIp ":%s, "
     109                            "caller=%" PRIp "(%s)", CPU->id, sl, sl->name,
     110                            CALLER, symtab_fmt_name_lookup(CALLER));
     111
    122112                        i = 0;
    123113                        deadlock_reported = true;
Note: See TracChangeset for help on using the changeset viewer.