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


Ignore:
Timestamp:
2018-10-31T18:15:56Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
071cb36
Parents:
482f968
Message:

Rename THE/the_t to CURRENT/current_t

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

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

File:
1 edited

Legend:

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

    r482f968 r91a8f83  
    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.