Changeset 80fbdc9


Ignore:
Timestamp:
Oct 13, 2022, 10:33:27 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
05d499ac
Parents:
4af5396
Message:

remove include for bits/locks.hfa, generalize format code in error message to remove warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r4af5396 r80fbdc9  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Oct 13 21:41:32 2022
    13 // Update Count     : 1553
     12// Last Modified On : Thu Oct 13 22:21:52 2022
     13// Update Count     : 1557
    1414//
    1515
     
    2828#include "bits/align.hfa"                                                               // libAlign
    2929#include "bits/defs.hfa"                                                                // likely, unlikely
    30 #include "bits/locks.hfa"                                                               // __spinlock_t
    3130#include "concurrency/kernel/fwd.hfa"                                   // __POLL_PREEMPTION
    3231#include "startup.hfa"                                                                  // STARTUP_PRIORITY_MEMORY
     
    596595                        char helpText[512];
    597596                        __cfaabi_bits_print_buffer( STDERR_FILENO, helpText, sizeof(helpText),
    598                                                                                 "CFA warning (UNIX pid:%ld) : program terminating with %llu(0x%llx) bytes of storage allocated but not freed.\n"
     597                                                                                "CFA warning (UNIX pid:%ld) : program terminating with %ju(0x%jx) bytes of storage allocated but not freed.\n"
    599598                                                                                "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",
    600599                                                                                (long int)getpid(), allocUnfreed, allocUnfreed ); // always print the UNIX pid
Note: See TracChangeset for help on using the changeset viewer.