Commit 34ef0d13 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

No commit message

No commit message
parent 104cf06d
......@@ -91,8 +91,8 @@ static void memInternalProblem(const char *caller, const char *fmt, ...)
static void memError(const char *caller, const char *file, int line, size_t size)
{
printf("\n");
fprintf(stderr, "Error (%s) : Allocation of %ld bytes failed. [ line %d file %s ]\n",
caller, (long) size, line, file);
fprintf(stderr, "Error (%s) : Allocation of %lu bytes failed. [ line %d file %s ]\n",
caller, (unsigned long) size, line, file);
if ( errno )
perror("System error message ");
......@@ -121,7 +121,7 @@ static void memListPrintEntry(int mtype, int item, size_t size, void *ptr,
}
fprintf(stderr, "memory item %3d ", item);
fprintf(stderr, "(%6u byte) ", (unsigned) size);
fprintf(stderr, "(%6lu byte) ", (unsigned long) size);
fprintf(stderr, "at %p", ptr);
if ( file != NULL )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment