Compare commits

..

No commits in common. "b5bc3e54a499e50ee4981159a5ceff17735c273f" and "40a9c089ee581847619503f420f9c792f7dda9a4" have entirely different histories.

3 changed files with 8 additions and 8 deletions

View file

@ -24,12 +24,12 @@
#include <Cytoplasm.h> #include <Cytoplasm.h>
char *CytoplasmGetName(void) char *CytoplasmGetName()
{ {
return LIB_NAME; return LIB_NAME;
} }
char *CytoplasmGetVersion(void) char *CytoplasmGetVersion()
{ {
return LIB_VERSION; return LIB_VERSION;
} }

View file

@ -38,11 +38,11 @@ HexDump(size_t off, char *hexBuf, char *asciiBuf, void *args)
if (hexBuf && asciiBuf) if (hexBuf && asciiBuf)
{ {
fprintf(report, "%04zx: %s | %s |\n", off, hexBuf, asciiBuf); fprintf(report, "%04lx: %s | %s |\n", off, hexBuf, asciiBuf);
} }
else else
{ {
fprintf(report, "%04zx\n", off); fprintf(report, "%04lx\n", off);
} }
} }
@ -52,7 +52,7 @@ MemoryIterator(MemoryInfo * i, void *args)
{ {
FILE *report = args; FILE *report = args;
fprintf(report, "%s:%d: %zu bytes at %p\n", fprintf(report, "%s:%d: %lu 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: %zu\n", MemoryAllocated()); fprintf(report, "Total Bytes: %lu\n", MemoryAllocated());
fprintf(report, "\n"); fprintf(report, "\n");
MemoryIterate(MemoryIterator, report); MemoryIterate(MemoryIterator, report);

View file

@ -57,4 +57,4 @@ extern char * CytoplasmGetName(void);
*/ */
extern char * CytoplasmGetVersion(void); extern char * CytoplasmGetVersion(void);
#endif /* CYTOPLASM_CYTOPLASM_H */ #endif /* CYTOPLASM_CYTOPLASM_H */