patch-2.4.0-prerelease linux/drivers/acpi/common/cmalloc.c

Next file: linux/drivers/acpi/common/cmclib.c
Previous file: linux/drivers/acpi/common/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/drivers/acpi/common/cmalloc.c linux/drivers/acpi/common/cmalloc.c
@@ -1,7 +1,7 @@
 /******************************************************************************
  *
  * Module Name: cmalloc - local memory allocation routines
- *              $Revision: 73 $
+ *              $Revision: 79 $
  *
  *****************************************************************************/
 
@@ -57,11 +57,15 @@
 	u32                     line)
 {
 	void                    *address = NULL;
+	DEBUG_ONLY_MEMBERS (\
+	ACPI_STATUS             status)
+
 
 	/* Check for an inadvertent size of zero bytes */
 
 	if (!size) {
-		REPORT_ERROR ("Cm_allocate: Attempt to allocate zero bytes");
+		_REPORT_ERROR (module, line, component,
+				("Cm_allocate: Attempt to allocate zero bytes\n"));
 		size = 1;
 	}
 
@@ -70,7 +74,7 @@
 		/* Report allocation error */
 
 		_REPORT_ERROR (module, line, component,
-			"Cm_allocate: Memory allocation failure");
+				("Cm_allocate: Could not allocate size %X\n", size));
 
 		return (NULL);
 	}
@@ -103,11 +107,15 @@
 	u32                     line)
 {
 	void                    *address = NULL;
+	DEBUG_ONLY_MEMBERS (\
+	ACPI_STATUS             status)
+
 
 	/* Check for an inadvertent size of zero bytes */
 
 	if (!size) {
-		REPORT_ERROR ("Cm_callocate: Attempt to allocate zero bytes");
+		_REPORT_ERROR (module, line, component,
+				("Cm_callocate: Attempt to allocate zero bytes\n"));
 		return (NULL);
 	}
 
@@ -118,8 +126,7 @@
 		/* Report allocation error */
 
 		_REPORT_ERROR (module, line, component,
-			"Cm_callocate: Memory allocation failure");
-
+				("Cm_callocate: Could not allocate size %X\n", size));
 		return (NULL);
 	}
 
@@ -153,7 +160,7 @@
 
 	if (NULL == address) {
 		_REPORT_ERROR (module, line, component,
-			"_Cm_free: Trying to delete a NULL address.");
+			("_Cm_free: Trying to delete a NULL address\n"));
 
 		return;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)