Changeset 357fae8


Ignore:
Timestamp:
Mar 22, 2021, 8:03:11 PM (4 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master
Children:
e825c9d
Parents:
1c6e1ec
Message:

Fixed bad copy paste

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/preemption.cfa

    r1c6e1ec r357fae8  
    3535
    3636__attribute__((weak)) Duration default_preemption() {
    37         const char * preempt_rate_s = getenv("CFA_DEFAULT_PROCESSORS");
     37        const char * preempt_rate_s = getenv("CFA_DEFAULT_PREEMPTION");
    3838        if(!preempt_rate_s) {
    39                 __cfadbg_print_safe(preemption, "No CFA_DEFAULT_PROCESSORS in ENV\n");
     39                __cfadbg_print_safe(preemption, "No CFA_DEFAULT_PREEMPTION in ENV\n");
    4040                return __CFA_DEFAULT_PREEMPTION__;
    4141        }
     
    4444        long int preempt_rate_l = strtol(preempt_rate_s, &endptr, 10);
    4545        if(preempt_rate_l < 0 || preempt_rate_l > 65535) {
    46                 __cfadbg_print_safe(preemption, "CFA_DEFAULT_PROCESSORS out of range : %ld\n", preempt_rate_l);
     46                __cfadbg_print_safe(preemption, "CFA_DEFAULT_PREEMPTION out of range : %ld\n", preempt_rate_l);
    4747                return __CFA_DEFAULT_PREEMPTION__;
    4848        }
    4949        if('\0' != *endptr) {
    50                 __cfadbg_print_safe(preemption, "CFA_DEFAULT_PROCESSORS not a decimal number : %s\n", preempt_rate_s);
     50                __cfadbg_print_safe(preemption, "CFA_DEFAULT_PREEMPTION not a decimal number : %s\n", preempt_rate_s);
    5151                return __CFA_DEFAULT_PREEMPTION__;
    5252        }
Note: See TracChangeset for help on using the changeset viewer.