Changeset a6e55886 in mainline for kernel/generic/src/debug/panic.c


Ignore:
Timestamp:
2018-11-01T14:30:03Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1da1ff2
Parents:
bab75df6
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-01 14:30:03)
git-committer:
GitHub <noreply@…> (2018-11-01 14:30:03)
Message:

Rename THE/the_t to CURRENT/current_t (#50)

Because the word "THE" occurs several times in every license
header, searching for occurrences of "THE" macro is more difficult
than necessary.

While I appreciate the wit of it, using a non-conflicting word
for it is more practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/panic.c

    rbab75df6 ra6e55886  
    9494        printf("\n");
    9595
    96         printf("THE=%p: ", THE);
    97         if (THE != NULL) {
     96        printf("CURRENT=%p: ", CURRENT);
     97        if (CURRENT != NULL) {
    9898                printf("pe=%" PRIuPTR " thread=%p task=%p cpu=%p as=%p"
    99                     " magic=%#" PRIx32 "\n", THE->preemption,
    100                     THE->thread, THE->task, THE->cpu, THE->as, THE->magic);
     99                    " magic=%#" PRIx32 "\n", CURRENT->preemption,
     100                    CURRENT->thread, CURRENT->task, CURRENT->cpu, CURRENT->as, CURRENT->magic);
    101101
    102                 if (THE->thread != NULL)
    103                         printf("thread=\"%s\"\n", THE->thread->name);
     102                if (CURRENT->thread != NULL)
     103                        printf("thread=\"%s\"\n", CURRENT->thread->name);
    104104
    105                 if (THE->task != NULL)
    106                         printf("task=\"%s\"\n", THE->task->name);
     105                if (CURRENT->task != NULL)
     106                        printf("task=\"%s\"\n", CURRENT->task->name);
    107107        } else
    108108                printf("invalid\n");
Note: See TracChangeset for help on using the changeset viewer.