summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dbhistry.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-02-23 05:10:40 +0000
committermsmith <msmith@FreeBSD.org>2002-02-23 05:10:40 +0000
commitb58b48bed8ea5143df93704f27949298f2d54429 (patch)
treecb8c80a21a1f185481adc55c00d2affbdae36b0e /sys/contrib/dev/acpica/dbhistry.c
parentfe76969b7da935c578de24725d0e86947a339135 (diff)
downloadFreeBSD-src-b58b48bed8ea5143df93704f27949298f2d54429.zip
FreeBSD-src-b58b48bed8ea5143df93704f27949298f2d54429.tar.gz
Vendor import of the Intel ACPI CA 20020217 drop.
Diffstat (limited to 'sys/contrib/dev/acpica/dbhistry.c')
-rw-r--r--sys/contrib/dev/acpica/dbhistry.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/contrib/dev/acpica/dbhistry.c b/sys/contrib/dev/acpica/dbhistry.c
index 147c6f5..1aceadc 100644
--- a/sys/contrib/dev/acpica/dbhistry.c
+++ b/sys/contrib/dev/acpica/dbhistry.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: dbhistry - debugger HISTORY command
- * $Revision: 19 $
+ * $Revision: 22 $
*
*****************************************************************************/
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -129,7 +129,7 @@
#ifdef ENABLE_DEBUGGER
#define _COMPONENT ACPI_DEBUGGER
- MODULE_NAME ("dbhistry")
+ ACPI_MODULE_NAME ("dbhistry")
#define HI_NO_HISTORY 0
@@ -169,10 +169,9 @@ AcpiDbAddToHistory (
NATIVE_CHAR *CommandLine)
{
-
/* Put command into the next available slot */
- STRCPY (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command, CommandLine);
+ ACPI_STRCPY (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command, CommandLine);
AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].CmdNum = AcpiGbl_NextCmdNum;
@@ -194,13 +193,11 @@ AcpiDbAddToHistory (
AcpiGbl_NextHistoryIndex = 0;
}
-
AcpiGbl_NextCmdNum++;
if (AcpiGbl_NumHistory < HISTORY_SIZE)
{
AcpiGbl_NumHistory++;
}
-
}
@@ -270,10 +267,9 @@ AcpiDbGetFromHistory (
else
{
- CmdNum = STRTOUL (CommandNumArg, NULL, 0);
+ CmdNum = ACPI_STRTOUL (CommandNumArg, NULL, 0);
}
-
/* Search history buffer */
HistoryIndex = AcpiGbl_LoHistory;
OpenPOWER on IntegriCloud