Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
34ef0d13
Commit
34ef0d13
authored
Sep 08, 2009
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
104cf06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dmemory.c
View file @
34ef0d13
...
...
@@ -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 %l
d
bytes failed. [ line %d file %s ]
\n
"
,
caller
,
(
long
)
size
,
line
,
file
);
fprintf
(
stderr
,
"Error (%s) : Allocation of %l
u
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
,
"(%6
l
u byte) "
,
(
unsigned
long
)
size
);
fprintf
(
stderr
,
"at %p"
,
ptr
);
if
(
file
!=
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment