-/* $Id: session.c,v 1.1 2002/04/10 21:30:22 ea Exp $
+/* $Id: session.c,v 1.4 2003/12/21 20:11:46 ea Exp $
*
* PROJECT : ReactOS / POSIX+ Environment Subsystem Server
* FILE : reactos/subsys/psx/server/port/session.c
HANDLE hConnectedPort;
ULONG ulPortIdentifier;
- debug_print (L"PSXSS: ->"__FUNCTION__);
+ debug_print (L"PSXSS: ->%s", TEXT(__FUNCTION__));
/* Check if the caller is a terminal */
Status = PsxCheckConnectionRequest (
if (!NT_SUCCESS(Status))
{
debug_print(
- L"PSXSS: "__FUNCTION__": NtAcceptConnectPort failed with status=%08x",
+ L"PSXSS: %s: NtAcceptConnectPort failed with status=%08x",
+ TEXT(__FUNCTION__),
Status
);
}
);
if (!NT_SUCCESS(Status))
{
- debug_print(L"PSXSS: "__FUNCTION__": NtAcceptConnectPort failed with status=%08x", Status);
+ debug_print(L"PSXSS: %s: NtAcceptConnectPort failed with status=%08x", TEXT(__FUNCTION__), Status);
return Status;
}
/* OK, now create a new PSX_SESSION object */
);
if (!NT_SUCCESS(Status))
{
- debug_print(L"PSXSS: "__FUNCTION__": PsxCreateSession failed with status=%08x", Status);
+ debug_print(L"PSXSS: %s: PsxCreateSession failed with status=%08x", TEXT(__FUNCTION__), Status);
return Status;
}
Status = NtCompleteConnectPort (hConnectedPort);
if (!NT_SUCCESS(Status))
{
- debug_print(L"PSXSS: "__FUNCTION__": NtCompleteConnectPort failed with status=%08x", Status);
+ debug_print(L"PSXSS: %s: NtCompleteConnectPort failed with status=%08x", TEXT(__FUNCTION__), Status);
return Status;
}
- debug_print (L"PSXSS: <-"__FUNCTION__);
+ debug_print (L"PSXSS: <-%s", TEXT(__FUNCTION__));
return STATUS_SUCCESS;
}
/**********************************************************************
PRIVATE NTSTATUS STDCALL
ProcessRequest (PPSX_MAX_MESSAGE pRequest)
{
- debug_print (L"PSXSS: ->"__FUNCTION__);
+ debug_print (L"PSXSS: ->%s", TEXT(__FUNCTION__));
/* TODO: Read data from the section */
/* TODO: send data to the process */
- debug_print (L"PSXSS: <-"__FUNCTION__);
+ debug_print (L"PSXSS: <-%s", TEXT(__FUNCTION__));
return STATUS_NOT_IMPLEMENTED;
}
/**********************************************************************
PPSX_MAX_MESSAGE Reply = NULL;
BOOL NullReply = FALSE;
- debug_print (L"PSXSS: ->"__FUNCTION__" pArg=%d", ulIndex);
+ debug_print (L"PSXSS: ->%s pArg=%d", TEXT(__FUNCTION__), ulIndex);
while (TRUE)
{