[REACTOS] Improve how some ASSERTMSG() message values are printed: enforce ending...
[reactos.git] / drivers / bus / pcix / arb / tr_irq.c
index c19bf4d..87aa3bf 100644 (file)
@@ -9,6 +9,7 @@
 /* INCLUDES *******************************************************************/
 
 #include <pci.h>
+
 #define NDEBUG
 #include <debug.h>
 
@@ -33,8 +34,9 @@ NTSTATUS
 NTAPI
 tranirq_Initializer(IN PVOID Instance)
 {
+    UNREFERENCED_PARAMETER(Instance);
     /* PnP Interfaces don't get Initialized */
-    ASSERTMSG(FALSE, "PCI tranirq_Initializer, unexpected call.");
+    ASSERTMSG("PCI tranirq_Initializer, unexpected call.\n", FALSE);
     return STATUS_UNSUCCESSFUL;
 }
 
@@ -52,18 +54,22 @@ tranirq_Constructor(IN PVOID DeviceExtension,
     INTERFACE_TYPE ParentInterface;
     ASSERT_FDO(FdoExtension);
 
+    UNREFERENCED_PARAMETER(Instance);
+    UNREFERENCED_PARAMETER(Version);
+    UNREFERENCED_PARAMETER(Size);
+
     /* Make sure it's the right resource type */
-    if ((ULONG)InterfaceData != CmResourceTypeInterrupt)
+    if ((ULONG_PTR)InterfaceData != CmResourceTypeInterrupt)
     {
         /* Fail this invalid request */
-        DPRINT1("PCI - IRQ trans constructor doesn't like %x in InterfaceSpecificData\n",
+        DPRINT1("PCI - IRQ trans constructor doesn't like %p in InterfaceSpecificData\n",
                 InterfaceData);
         return STATUS_INVALID_PARAMETER_3;
     }
 
     /* Get the bus, and use this as the interface-specific data */
     BaseBus = FdoExtension->BaseBus;
-    InterfaceData = (PVOID)BaseBus;
+    InterfaceData = UlongToPtr(BaseBus);
 
     /* Check if this is the root bus */
     if (PCI_IS_ROOT_FDO(FdoExtension))