diff --git a/apps/src/memeater.c b/apps/src/memeater.c index dcd6755c..a1c26c71 100644 --- a/apps/src/memeater.c +++ b/apps/src/memeater.c @@ -15,6 +15,6 @@ int main() printf("Allocating 4 MB of memory... %lx\n", (unsigned long)allocated); sleep(1); } while ((allocated = malloc(CHUNK))); - printf("Out of memory. (errno=%d, %s)\n", errno, strerror(errno)); + perror("malloc"); printf("Press any key to restart.\n"); } \ No newline at end of file