Fix para_client hangs.
[paraslash.git] / string.c
index bf10783442df4dc97644f58b0fca309d52ed3163..8c97ccf75e22397fe3929e84340a05f00b43003c 100644 (file)
--- a/string.c
+++ b/string.c
@@ -63,7 +63,8 @@ __must_check __malloc void *para_malloc(size_t size)
        void *p = malloc(size);
 
        if (!p) {
-               PARA_EMERG_LOG("%s", "malloc failed, aborting\n");
+               PARA_EMERG_LOG("malloc failed (size = %zu),  aborting\n",
+                       size);
                exit(EXIT_FAILURE);
        }
        return p;