IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2005, 1:42:07 PM (21 years ago)
Author:
desonia
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r4589 r4877  
    88*  @author Robert Lupton, Princeton University
    99*
    10 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-07-21 01:40:10 $
     10*  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-08-25 23:42:07 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    109109        psError(PS_ERR_MEMORY_CORRUPTION, false,
    110110                PS_ERRORTEXT_psMemory_MULTIPLE_FREE,
    111                 ptr->id, ptr->file, ptr->lineno, file, lineno);
     111                (unsigned long)ptr->id, ptr->file, ptr->lineno, file, lineno);
    112112    }
    113113
     
    138138        psError(PS_ERR_MEMORY_CORRUPTION, true,
    139139                PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE,
    140                 m->id);
     140                (unsigned long)m->id);
    141141        return 1;
    142142    }
     
    145145        psError(PS_ERR_MEMORY_CORRUPTION, true,
    146146                PS_ERRORTEXT_psMemory_UNDERFLOW,
    147                 m->id);
     147                (unsigned long)m->id);
    148148        return 1;
    149149    }
     
    151151        psError(PS_ERR_MEMORY_CORRUPTION, true,
    152152                PS_ERRORTEXT_psMemory_OVERFLOW,
    153                 m->id);
     153                (unsigned long)m->id);
    154154        return 1;
    155155    }
     
    390390        if (checkMemBlock(ptr, __func__) != 0) {
    391391            memProblemCallback(ptr, file, lineno);
    392             psAbort(file, "Realloc detected a memory corruption (id %lld @ %s:%d).",
    393                     ptr->id, ptr->file, ptr->lineno);
     392            psAbort(file, "Realloc detected a memory corruption (id %lu @ %s:%d).",
     393                    (unsigned long)ptr->id, ptr->file, ptr->lineno);
    394394        }
    395395
     
    444444
    445445        psAbort(__func__,PS_ERRORTEXT_psMemory_MULTIPLE_FREE,
    446                 ptr->id, ptr->file, ptr->lineno, filename, lineno);
     446                (unsigned long)ptr->id, ptr->file, ptr->lineno, filename, lineno);
    447447    }
    448448
     
    481481                }
    482482
    483                 fprintf(fd, "   %20s:%-4d %ld\n", iter->file, (int)iter->lineno, (long)iter->id);
     483                fprintf(fd, "   %20s:%-4d %lu\n", iter->file, (int)iter->lineno, (unsigned long)iter->id);
    484484            }
    485485        }
Note: See TracChangeset for help on using the changeset viewer.