Changeset 2307 for trunk


Ignore:
Timestamp:
Aug 24, 2005, 4:27:14 PM (20 years ago)
Author:
bird
Message:

Fixed bad panic format types in safesems.

Location:
trunk/src/emx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/ChangeLog.LIBC

    • Property cvs2svn:cvs-rev changed from 1.127 to 1.128
    r2306 r2307  
    22
    33TODO: open replace on RAMFS fails with error 32!
     4
     52005-08-24: knut st. osmundsen <bird-gccos2-spam@anduin.net>
     6    - libc:
     7        o Fixed bad panic format types in safesems.
    48
    592005-08-21: knut st. osmundsen <bird-gccos2-spam@anduin.net>
  • trunk/src/emx/src/lib/sys/safesems.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r2306 r2307  
    226226                rc = DosCreateMutexSemEx(NULL, &hmtxNew, pmtx->fShared ? DC_SEM_SHARED : 0, TRUE);
    227227                if (rc)
    228                     __libc_Back_panic(0, NULL, "safesem mutex owner died: create mutex failed, rc=%d. pmtx=%p:{.hmtx=%#lx .fShared=%d}\n",
    229                                       rc, (void *)pmtx, pmtx->hmtx, pmtx->fShared);
     228                    __libc_Back_panic(0, NULL, "safesem mutex owner died: create mutex failed, rc=%d. pmtx=%p:{.hmtx=%x .fShared=%d}\n",
     229                                      rc, (void *)pmtx, (unsigned)pmtx->hmtx, pmtx->fShared);
    230230                /* we race here. */
    231231                if (__atomic_cmpxchg32((uint32_t volatile *)&pmtx->hmtx, (uint32_t)hmtx, (uint32_t)hmtxNew))
     
    238238            }
    239239            else
    240                 __libc_Back_panic(0, NULL, "safesem mutex requested failed, rc=%d. pmtx=%p:{.hmtx=%#lx .fShared=%d}\n",
    241                                   rc, (void *)pmtx, pmtx->hmtx, pmtx->fShared);
     240                __libc_Back_panic(0, NULL, "safesem mutex requested failed, rc=%d. pmtx=%p:{.hmtx=%x .fShared=%d}\n",
     241                                  rc, (void *)pmtx, (unsigned)pmtx->hmtx, pmtx->fShared);
    242242
    243243            /*
     
    245245             */
    246246            if (msSleep <= 1)
    247                 __libc_Back_panic(0, NULL, "safesem mutex timeout, %u ms: pmtx=%p:{.hmtx=%#lx .fShared=%d}\n",
    248                                   fibGetMsCount() - msStart, (void *)pmtx, pmtx->hmtx, pmtx->fShared);
     247                __libc_Back_panic(0, NULL, "safesem mutex timeout, %u ms: pmtx=%p:{.hmtx=%x .fShared=%d}\n",
     248                                  fibGetMsCount() - msStart, (void *)pmtx, (unsigned)pmtx->hmtx, pmtx->fShared);
    249249            msSleep = fibGetMsCount() - msStart;
    250250            if (msSleep < 30*1000)
     
    283283    rc = DosReleaseMutexSem(pmtx->hmtx);
    284284    if (__predict_false(rc != NO_ERROR))
    285         __libc_Back_panic(0, NULL, "safesem mutex release failed, rc=%d. pmtx=%p:{.hmtx=%#lx .fShared=%d}\n",
    286                           rc, (void *)pmtx, pmtx->hmtx, pmtx->fShared);
     285        __libc_Back_panic(0, NULL, "safesem mutex release failed, rc=%d. pmtx=%p:{.hmtx=%x .fShared=%d}\n",
     286                          rc, (void *)pmtx, (unsigned)pmtx->hmtx, pmtx->fShared);
    287287
    288288    DosExitMustComplete(&ul);
Note: See TracChangeset for help on using the changeset viewer.