aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utmisc.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2010-09-15 02:09:14 -0400
committerLen Brown <len.brown@intel.com>2010-10-01 01:47:56 -0400
commitcc84e262b71bab53c3b2be2e71209c85b88b4b4d (patch)
tree9dba63aa6b328992e0dbaa36c74078715257a0c2 /drivers/acpi/acpica/utmisc.c
parent31b3d4c3b3c599a2329c3e66ffab7a045b169c85 (diff)
ACPICA: iASL/Disassembler: Write ACPI errors to stderr instead of output file
This keeps the output files clean of random error messages that may originate from within the namespace/interpreter code. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utmisc.c')
-rw-r--r--drivers/acpi/acpica/utmisc.c162
1 files changed, 0 insertions, 162 deletions
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c
index e8d0724ee403..c7d0e05ef5a4 100644
--- a/drivers/acpi/acpica/utmisc.c
+++ b/drivers/acpi/acpica/utmisc.c
@@ -50,11 +50,6 @@
50#define _COMPONENT ACPI_UTILITIES 50#define _COMPONENT ACPI_UTILITIES
51ACPI_MODULE_NAME("utmisc") 51ACPI_MODULE_NAME("utmisc")
52 52
53/*
54 * Common suffix for messages
55 */
56#define ACPI_COMMON_MSG_SUFFIX \
57 acpi_os_printf(" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, module_name, line_number)
58/******************************************************************************* 53/*******************************************************************************
59 * 54 *
60 * FUNCTION: acpi_ut_validate_exception 55 * FUNCTION: acpi_ut_validate_exception
@@ -1044,160 +1039,3 @@ acpi_ut_walk_package_tree(union acpi_operand_object * source_object,
1044 1039
1045 return_ACPI_STATUS(AE_AML_INTERNAL); 1040 return_ACPI_STATUS(AE_AML_INTERNAL);
1046} 1041}
1047
1048/*******************************************************************************
1049 *
1050 * FUNCTION: acpi_error, acpi_exception, acpi_warning, acpi_info
1051 *
1052 * PARAMETERS: module_name - Caller's module name (for error output)
1053 * line_number - Caller's line number (for error output)
1054 * Format - Printf format string + additional args
1055 *
1056 * RETURN: None
1057 *
1058 * DESCRIPTION: Print message with module/line/version info
1059 *
1060 ******************************************************************************/
1061
1062void ACPI_INTERNAL_VAR_XFACE
1063acpi_error(const char *module_name, u32 line_number, const char *format, ...)
1064{
1065 va_list args;
1066
1067 acpi_os_printf("ACPI Error: ");
1068
1069 va_start(args, format);
1070 acpi_os_vprintf(format, args);
1071 ACPI_COMMON_MSG_SUFFIX;
1072 va_end(args);
1073}
1074
1075void ACPI_INTERNAL_VAR_XFACE
1076acpi_exception(const char *module_name,
1077 u32 line_number, acpi_status status, const char *format, ...)
1078{
1079 va_list args;
1080
1081 acpi_os_printf("ACPI Exception: %s, ", acpi_format_exception(status));
1082
1083 va_start(args, format);
1084 acpi_os_vprintf(format, args);
1085 ACPI_COMMON_MSG_SUFFIX;
1086 va_end(args);
1087}
1088
1089void ACPI_INTERNAL_VAR_XFACE
1090acpi_warning(const char *module_name, u32 line_number, const char *format, ...)
1091{
1092 va_list args;
1093
1094 acpi_os_printf("ACPI Warning: ");
1095
1096 va_start(args, format);
1097 acpi_os_vprintf(format, args);
1098 ACPI_COMMON_MSG_SUFFIX;
1099 va_end(args);
1100}
1101
1102void ACPI_INTERNAL_VAR_XFACE
1103acpi_info(const char *module_name, u32 line_number, const char *format, ...)
1104{
1105 va_list args;
1106
1107 acpi_os_printf("ACPI: ");
1108
1109 va_start(args, format);
1110 acpi_os_vprintf(format, args);
1111 acpi_os_printf("\n");
1112 va_end(args);
1113}
1114
1115ACPI_EXPORT_SYMBOL(acpi_error)
1116ACPI_EXPORT_SYMBOL(acpi_exception)
1117ACPI_EXPORT_SYMBOL(acpi_warning)
1118ACPI_EXPORT_SYMBOL(acpi_info)
1119
1120/*******************************************************************************
1121 *
1122 * FUNCTION: acpi_ut_predefined_warning
1123 *
1124 * PARAMETERS: module_name - Caller's module name (for error output)
1125 * line_number - Caller's line number (for error output)
1126 * Pathname - Full pathname to the node
1127 * node_flags - From Namespace node for the method/object
1128 * Format - Printf format string + additional args
1129 *
1130 * RETURN: None
1131 *
1132 * DESCRIPTION: Warnings for the predefined validation module. Messages are
1133 * only emitted the first time a problem with a particular
1134 * method/object is detected. This prevents a flood of error
1135 * messages for methods that are repeatedly evaluated.
1136 *
1137******************************************************************************/
1138
1139void ACPI_INTERNAL_VAR_XFACE
1140acpi_ut_predefined_warning(const char *module_name,
1141 u32 line_number,
1142 char *pathname,
1143 u8 node_flags, const char *format, ...)
1144{
1145 va_list args;
1146
1147 /*
1148 * Warning messages for this method/object will be disabled after the
1149 * first time a validation fails or an object is successfully repaired.
1150 */
1151 if (node_flags & ANOBJ_EVALUATED) {
1152 return;
1153 }
1154
1155 acpi_os_printf("ACPI Warning for %s: ", pathname);
1156
1157 va_start(args, format);
1158 acpi_os_vprintf(format, args);
1159 ACPI_COMMON_MSG_SUFFIX;
1160 va_end(args);
1161}
1162
1163/*******************************************************************************
1164 *
1165 * FUNCTION: acpi_ut_predefined_info
1166 *
1167 * PARAMETERS: module_name - Caller's module name (for error output)
1168 * line_number - Caller's line number (for error output)
1169 * Pathname - Full pathname to the node
1170 * node_flags - From Namespace node for the method/object
1171 * Format - Printf format string + additional args
1172 *
1173 * RETURN: None
1174 *
1175 * DESCRIPTION: Info messages for the predefined validation module. Messages
1176 * are only emitted the first time a problem with a particular
1177 * method/object is detected. This prevents a flood of
1178 * messages for methods that are repeatedly evaluated.
1179 *
1180 ******************************************************************************/
1181
1182void ACPI_INTERNAL_VAR_XFACE
1183acpi_ut_predefined_info(const char *module_name,
1184 u32 line_number,
1185 char *pathname, u8 node_flags, const char *format, ...)
1186{
1187 va_list args;
1188
1189 /*
1190 * Warning messages for this method/object will be disabled after the
1191 * first time a validation fails or an object is successfully repaired.
1192 */
1193 if (node_flags & ANOBJ_EVALUATED) {
1194 return;
1195 }
1196
1197 acpi_os_printf("ACPI Info for %s: ", pathname);
1198
1199 va_start(args, format);
1200 acpi_os_vprintf(format, args);
1201 ACPI_COMMON_MSG_SUFFIX;
1202 va_end(args);
1203}