/*
- * COPYRIGHT: See COPYING in the top level directory
+ * ReactOS kernel
+ * Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
* PROJECT: ReactOS kernel
- * FILE: ntoskrnl/dbg/brkpoints.c
- * PURPOSE: Handles breakpoints
- * PROGRAMMER: David Welch (welch@mcmail.com)
+ * FILE: ntoskrnl/dbg/errinfo.c
+ * PURPOSE: Print information descriptions of error messages
+ * PORTABILITY: Checked
* UPDATE HISTORY:
* Created 22/05/98
*/
-/* INCLUDES *****************************************************************/
+/* INCLUDES ******************************************************************/
#include <ddk/ntddk.h>
-
#include <internal/debug.h>
-#include <string.h>
-#include <internal/string.h>
-#include <internal/ntoskrnl.h> /* for sprintf */
+
+/* GLOBALS *******************************************************************/
static PCHAR SeverityCodes[] = {"SUC", "INF", "ERR", "WRN"};
{
{STATUS_SUCCESS, "SUCCESS", NULL},
{STATUS_INSUFFICIENT_RESOURCES, "INSUFFICIENT_RESOURCES", NULL},
-// {STATUS_OBJECT_NAME_EXISTS, "OBJECT_NAME_EXISTS", NULL},
+ {STATUS_OBJECT_NAME_EXISTS, "OBJECT_NAME_EXISTS", NULL},
{STATUS_OBJECT_NAME_COLLISION, "OBJECT_NAME_COLLISION", NULL},
{STATUS_CTL_FILE_NOT_SUPPORTED, "CTL_FILE_NOT_SUPPORTED", NULL},
{STATUS_PORT_ALREADY_SET, "PORT_ALREADY_SET", NULL},
{STATUS_OBJECT_PATH_INVALID, "OBJECT_PATH_INVALID", NULL},
{STATUS_OBJECT_PATH_NOT_FOUND, "OBJECT_PATH_NOT_FOUND", NULL},
{STATUS_DFS_EXIT_PATH_FOUND, "DFS_EXIT_PATH_FOUND", NULL},
- {STATUS_OBJECT_PATH_SYNTAX_BAD, "OBJECT_PATH_SYNTAX_BAD", NULL},
+ {STATUS_PATH_SYNTAX_BAD, "PATH_SYNTAX_BAD", NULL},
{STATUS_DATA_OVERRUN, "DATA_OVERRUN", NULL},
{STATUS_DATA_LATE_ERROR, "DATA_LATE_ERROR", NULL},
{STATUS_DATA_ERROR, "DATA_ERROR", NULL},
{0, NULL, NULL}
};
-VOID DbgGetErrorText(NTSTATUS ErrorCode, PUNICODE_STRING ErrorText, ULONG Flags)
+/* FUNCTIONS *****************************************************************/
+
+VOID
+DbgGetErrorText(NTSTATUS ErrorCode, PUNICODE_STRING ErrorText, ULONG Flags)
{
int i;
char TempBuf[255], NumBuf[32];
RtlAnsiStringToUnicodeString(ErrorText, &AnsiString, TRUE);
}
-VOID DbgPrintErrorMessage(NTSTATUS ErrorCode)
+VOID
+DbgPrintErrorMessage(NTSTATUS ErrorCode)
{
UNICODE_STRING ErrorText;
DbgGetErrorText(ErrorCode, &ErrorText, 0xf);
- DbgPrint("%W\n", &ErrorText);
+ DbgPrint("%wZ\n", &ErrorText);
RtlFreeUnicodeString(&ErrorText);
}