aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:58:09 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:58:09 +0100
commit388a84ffeace9dd76721c79ebff5c2215e43694f (patch)
treedd97c5061fb358a7453d340551522e2cfcdd5a1a /FICS
parentd52aacd2b245a61f5e3c361599442f70f0abce23 (diff)
Added usage of '__func__'
Diffstat (limited to 'FICS')
-rw-r--r--FICS/rmalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/rmalloc.c b/FICS/rmalloc.c
index 72e3b1c..0a8f46d 100644
--- a/FICS/rmalloc.c
+++ b/FICS/rmalloc.c
@@ -45,7 +45,7 @@ rmalloc(int byteSize)
malloc_count++;
if ((newptr = malloc(byteSize)) == NULL) {
- fprintf(stderr, "Out of memory in malloc!\n");
+ fprintf(stderr, "Out of memory in %s()!\n", __func__);
abort();
}
@@ -60,13 +60,13 @@ rrealloc(void *ptr, int byteSize)
#endif
if (ptr == NULL) {
- fprintf(stderr, "Hoser! Null ptr passed to rrealloc!\n");
+ fprintf(stderr, "Hoser! Null ptr passed to %s()!\n", __func__);
return NULL;
} else {
void *newptr;
if ((newptr = realloc(ptr, byteSize)) == NULL) {
- fprintf(stderr, "Out of memory in rrealloc!\n");
+ fprintf(stderr, "Out of memory in %s()!\n", __func__);
abort();
}
@@ -82,7 +82,7 @@ rfree(void *ptr)
#endif
if (ptr == NULL) {
- fprintf(stderr, "Hoser! Null ptr passed to rfree!\n");
+ fprintf(stderr, "Hoser! Null ptr passed to %s()!\n", __func__);
} else {
free_count++;
free(ptr);