]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/MyAlloc.c
Sync basetools' source and binary files with r1707 of the basetools project.
[mirror_edk2.git] / BaseTools / Source / C / Common / MyAlloc.c
index b53713941cdbc1f8e57dca0a8d205468c89caf7a..64c5ff783e4e8af2c2c5790721725d197f0519ef 100644 (file)
@@ -86,7 +86,7 @@ MyCheck (
       "Invalid parameter(s).\n",\r
       Final,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -98,7 +98,7 @@ MyCheck (
       "Invalid parameter.\n",\r
       Final,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -121,12 +121,12 @@ MyCheck (
       "\nFile=%s, Line=%u, nSize=%u, Head=%xh, Tail=%xh\n",\r
       Final,\r
       File,\r
-      (UINT32)Line,\r
+      (unsigned)Line,\r
       Tmp->File,\r
-      (UINT32)Tmp->Line,\r
-      (UINT32)Tmp->Size,\r
-      *(UINT32 *) (Tmp->Buffer),\r
-      *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
+      (unsigned) Tmp->Line,\r
+      (unsigned) Tmp->Size,\r
+      (unsigned) *(UINT32 *) (Tmp->Buffer),\r
+      (unsigned) *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
       );\r
 \r
     exit (1);\r
@@ -141,17 +141,17 @@ MyCheck (
         "\nSome allocated items have not been freed.\n",\r
         Final,\r
         File,\r
-        (UINT32)Line\r
+        (unsigned)Line\r
         );\r
 \r
       for (Tmp = MyAllocData; Tmp != NULL; Tmp = Tmp->Next) {\r
         printf (\r
           "File=%s, Line=%u, nSize=%u, Head=%xh, Tail=%xh\n",\r
           Tmp->File,\r
-          (UINT32)Tmp->Line,\r
-          (UINT32)Tmp->Size,\r
-          *(UINT32 *) (Tmp->Buffer),\r
-          *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
+          (unsigned) Tmp->Line,\r
+          (unsigned) Tmp->Size,\r
+          (unsigned) *(UINT32 *) (Tmp->Buffer),\r
+          (unsigned) *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
           );\r
       }\r
     }\r
@@ -201,9 +201,9 @@ MyAlloc (
     printf (\r
       "\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
       "\nInvalid parameter(s).\n",\r
-      (UINT32)Size,\r
+      (unsigned)Size,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -214,9 +214,9 @@ MyAlloc (
     printf (\r
       "\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
       "\nInvalid parameter.\n",\r
-      (UINT32)Size,\r
+      (unsigned)Size,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -238,9 +238,9 @@ MyAlloc (
     printf (\r
       "\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
       "\nOut of memory.\n",\r
-      (UINT32)Size,\r
+      (unsigned)Size,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -315,9 +315,9 @@ MyRealloc (
       "\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
       "\nInvalid parameter(s).\n",\r
       Ptr,\r
-      (UINT32)Size,\r
+      (unsigned)Size,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -328,9 +328,9 @@ MyRealloc (
       "\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
       "\nInvalid parameter.\n",\r
       Ptr,\r
-      (UINT32)Size,\r
+      (unsigned)Size,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -349,9 +349,9 @@ MyRealloc (
           "\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
           "\nCould not find buffer.\n",\r
           Ptr,\r
-          (UINT32)Size,\r
+          (unsigned)Size,\r
           File,\r
-          (UINT32)Line\r
+          (unsigned)Line\r
           );\r
 \r
         exit (1);\r
@@ -421,7 +421,7 @@ MyFree (
       "\nInvalid parameter(s).\n",\r
       Ptr,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -433,7 +433,7 @@ MyFree (
       "\nInvalid parameter.\n",\r
       Ptr,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -453,7 +453,7 @@ MyFree (
       "\nCalled before memory allocated.\n",\r
       Ptr,\r
       File,\r
-      (UINT32)Line\r
+      (unsigned)Line\r
       );\r
 \r
     exit (1);\r
@@ -486,7 +486,7 @@ MyFree (
           "\nNot found.\n",\r
           Ptr,\r
           File,\r
-          (UINT32)Line\r
+          (unsigned)Line\r
           );\r
 \r
         exit (1);\r