Compare commits
2 commits
40a9c089ee
...
b5bc3e54a4
Author | SHA1 | Date | |
---|---|---|---|
b5bc3e54a4 | |||
20fa6816de |
3 changed files with 8 additions and 8 deletions
|
@ -24,12 +24,12 @@
|
||||||
|
|
||||||
#include <Cytoplasm.h>
|
#include <Cytoplasm.h>
|
||||||
|
|
||||||
char *CytoplasmGetName()
|
char *CytoplasmGetName(void)
|
||||||
{
|
{
|
||||||
return LIB_NAME;
|
return LIB_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *CytoplasmGetVersion()
|
char *CytoplasmGetVersion(void)
|
||||||
{
|
{
|
||||||
return LIB_VERSION;
|
return LIB_VERSION;
|
||||||
}
|
}
|
|
@ -38,11 +38,11 @@ HexDump(size_t off, char *hexBuf, char *asciiBuf, void *args)
|
||||||
|
|
||||||
if (hexBuf && asciiBuf)
|
if (hexBuf && asciiBuf)
|
||||||
{
|
{
|
||||||
fprintf(report, "%04lx: %s | %s |\n", off, hexBuf, asciiBuf);
|
fprintf(report, "%04zx: %s | %s |\n", off, hexBuf, asciiBuf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(report, "%04lx\n", off);
|
fprintf(report, "%04zx\n", off);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ MemoryIterator(MemoryInfo * i, void *args)
|
||||||
{
|
{
|
||||||
FILE *report = args;
|
FILE *report = args;
|
||||||
|
|
||||||
fprintf(report, "%s:%d: %lu bytes at %p\n",
|
fprintf(report, "%s:%d: %zu bytes at %p\n",
|
||||||
MemoryInfoGetFile(i), MemoryInfoGetLine(i),
|
MemoryInfoGetFile(i), MemoryInfoGetLine(i),
|
||||||
MemoryInfoGetSize(i), MemoryInfoGetPointer(i));
|
MemoryInfoGetSize(i), MemoryInfoGetPointer(i));
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ GenerateMemoryReport(int argc, char **argv)
|
||||||
fprintf(report, " '%s'", argv[i]);
|
fprintf(report, " '%s'", argv[i]);
|
||||||
}
|
}
|
||||||
fprintf(report, "\nDate: %s\n", tsBuffer);
|
fprintf(report, "\nDate: %s\n", tsBuffer);
|
||||||
fprintf(report, "Total Bytes: %lu\n", MemoryAllocated());
|
fprintf(report, "Total Bytes: %zu\n", MemoryAllocated());
|
||||||
fprintf(report, "\n");
|
fprintf(report, "\n");
|
||||||
|
|
||||||
MemoryIterate(MemoryIterator, report);
|
MemoryIterate(MemoryIterator, report);
|
||||||
|
|
Loading…
Reference in a new issue