From d2a93ea6d9fd062ca3f499787bf5ee584df103d9 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Thu, 6 Oct 2011 19:59:27 +0000 Subject: [PATCH] [NTOSKRNL] Fix dbg output. svn path=/trunk/; revision=54029 --- reactos/ntoskrnl/io/pnpmgr/pnpnotify.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpnotify.c b/reactos/ntoskrnl/io/pnpmgr/pnpnotify.c index 372ba30b64b..9f73218bcf0 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpnotify.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpnotify.c @@ -259,10 +259,11 @@ IoRegisterPlugPlayNotification(IN IO_NOTIFICATION_EVENT_CATEGORY EventCategory, NTSTATUS Status; PAGED_CODE(); - DPRINT("__FUNCTION__(EventCategory 0x%x, EventCategoryFlags 0x%lx, DriverObject %p) called.\n", - EventCategory, - EventCategoryFlags, - DriverObject); + DPRINT("%s(EventCategory 0x%x, EventCategoryFlags 0x%lx, DriverObject %p) called.\n", + __FUNCTION__, + EventCategory, + EventCategoryFlags, + DriverObject); ObReferenceObject(DriverObject); @@ -344,19 +345,18 @@ IoRegisterPlugPlayNotification(IN IO_NOTIFICATION_EVENT_CATEGORY EventCategory, } default: { - DPRINT1("__FUNCTION__(): unknown EventCategory 0x%x UNIMPLEMENTED\n", - EventCategory); + DPRINT1("%s: unknown EventCategory 0x%x UNIMPLEMENTED\n", + __FUNCTION__, EventCategory); break; } } KeAcquireGuardedMutex(&PnpNotifyListLock); - InsertHeadList(&PnpNotifyListHead, + InsertHeadList(&PnpNotifyListHead, &Entry->PnpNotifyList); KeReleaseGuardedMutex(&PnpNotifyListLock); - DPRINT("IoRegisterPlugPlayNotification() returns NotificationEntry %p\n", - Entry); + DPRINT("%s returns NotificationEntry %p\n", __FUNCTION__, Entry); *NotificationEntry = Entry; @@ -374,7 +374,7 @@ IoUnregisterPlugPlayNotification(IN PVOID NotificationEntry) PAGED_CODE(); Entry = (PPNP_NOTIFY_ENTRY)NotificationEntry; - DPRINT("__FUNCTION__(NotificationEntry %p) called\n", Entry); + DPRINT("%s(NotificationEntry %p) called\n", __FUNCTION__, Entry); KeAcquireGuardedMutex(&PnpNotifyListLock); RemoveEntryList(&Entry->PnpNotifyList);