commit - b682a5e48569f409f30d1bc39039de1090019665
commit + 2e858755c5cc8283fe46d99c7c5c0e6686ea7044
blob - 26c636a6394870d7d2aa941dbd7e46773c981cdb
blob + f45c0a3aecd29a3d1d6f1471f84488866b55b70a
--- src/ngircd/array.c
+++ src/ngircd/array.c
#include "array.h"
-static char UNUSED id[] = "$Id: array.c,v 1.3 2005/07/11 14:10:53 fw Exp $";
+static char UNUSED id[] = "$Id: array.c,v 1.4 2005/07/14 09:14:12 alex Exp $";
#include <assert.h>
}
}
#ifdef DEBUG
- Log(LOG_DEBUG, "Rounded %u to %u byte.", alloc, aligned);
+ Log(LOG_DEBUG, "array_alloc(): rounded %u to %u bytes.", alloc, aligned);
#endif
assert(aligned >= alloc);
alloc = aligned;
#ifdef DEBUG
- Log(LOG_DEBUG, "array_alloc: changing size from %u to %u byte",
+ Log(LOG_DEBUG, "array_alloc(): changing size from %u to %u bytes.",
a->allocated, aligned);
#endif
memcpy(dest->mem, src, len);
#ifdef DEBUG
Log(LOG_DEBUG,
- "array_copyb: copied %u bytes to array (%u total bytes allocated)",
+ "array_copyb(): copied %u bytes to array (%u bytes allocated).",
len, dest->allocated);
#endif
return true;
#ifdef DEBUG
Log(LOG_DEBUG,
- "array_catb: appending %u bytes to array (now %u total bytes in array)",
+ "array_catb(): appending %u bytes to array (now %u bytes in array).",
len, tmp);
#endif
memcpy(ptr + used, src, len);
assert(a != NULL);
#ifdef DEBUG
Log(LOG_DEBUG,
- "array_free: %u bytes free'd (%u bytes still used at time of free())",
+ "array_free(): %u bytes free'd (%u bytes still used at time of free()).",
a->allocated, a->used);
#endif
free(a->mem);
#ifdef DEBUG
Log(LOG_DEBUG,
- "array_moveleft: %u used bytes in array, move to beginning, starting at pos %u",
+ "array_moveleft(): %u bytes used in array, starting at position %u.",
a->used, bytepos);
#endif
if (a->used <= bytepos) {