aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/utilities/utdebug.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-10-03 00:00:00 -0400
committerLen Brown <len.brown@intel.com>2006-04-01 01:26:39 -0500
commit8313524a0d466f451a62709aaedf988d8257b21c (patch)
treed612fc796ae07d8a39542c95eec0f5169c9f64eb /drivers/acpi/utilities/utdebug.c
parentea936b78f46cbe089a4ac363e1682dee7d427096 (diff)
ACPI: ACPICA 20060310
Tagged all external interfaces to the subsystem with the new ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL macro. The default definition is NULL. Added the ACPI_THREAD_ID type for the return value from acpi_os_get_thread_id(). This allows the host to define this as necessary to simplify kernel integration. The default definition is ACPI_NATIVE_UINT. Valery Podrezov fixed two interpreter problems related to error processing, the deletion of objects, and placing invalid pointers onto the internal operator result stack. http://bugzilla.kernel.org/show_bug.cgi?id=6028 http://bugzilla.kernel.org/show_bug.cgi?id=6151 Increased the reference count threshold where a warning is emitted for large reference counts in order to eliminate unnecessary warnings on systems with large namespaces (especially 64-bit.) Increased the value from 0x400 to 0x800. Due to universal disagreement as to the meaning of the 'c' in the calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/utilities/utdebug.c')
-rw-r--r--drivers/acpi/utilities/utdebug.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c
index 6e92b2a3c0fd..a8c350643d57 100644
--- a/drivers/acpi/utilities/utdebug.c
+++ b/drivers/acpi/utilities/utdebug.c
@@ -41,8 +41,6 @@
41 * POSSIBILITY OF SUCH DAMAGES. 41 * POSSIBILITY OF SUCH DAMAGES.
42 */ 42 */
43 43
44#include <linux/module.h>
45
46#include <acpi/acpi.h> 44#include <acpi/acpi.h>
47 45
48#define _COMPONENT ACPI_UTILITIES 46#define _COMPONENT ACPI_UTILITIES
@@ -164,7 +162,7 @@ acpi_ut_debug_print(u32 requested_debug_level,
164 const char *function_name, 162 const char *function_name,
165 char *module_name, u32 component_id, char *format, ...) 163 char *module_name, u32 component_id, char *format, ...)
166{ 164{
167 u32 thread_id; 165 acpi_thread_id thread_id;
168 va_list args; 166 va_list args;
169 167
170 /* 168 /*
@@ -179,7 +177,6 @@ acpi_ut_debug_print(u32 requested_debug_level,
179 * Thread tracking and context switch notification 177 * Thread tracking and context switch notification
180 */ 178 */
181 thread_id = acpi_os_get_thread_id(); 179 thread_id = acpi_os_get_thread_id();
182
183 if (thread_id != acpi_gbl_prev_thread_id) { 180 if (thread_id != acpi_gbl_prev_thread_id) {
184 if (ACPI_LV_THREADS & acpi_dbg_level) { 181 if (ACPI_LV_THREADS & acpi_dbg_level) {
185 acpi_os_printf 182 acpi_os_printf
@@ -208,7 +205,7 @@ acpi_ut_debug_print(u32 requested_debug_level,
208 acpi_os_vprintf(format, args); 205 acpi_os_vprintf(format, args);
209} 206}
210 207
211EXPORT_SYMBOL(acpi_ut_debug_print); 208ACPI_EXPORT_SYMBOL(acpi_ut_debug_print)
212 209
213/******************************************************************************* 210/*******************************************************************************
214 * 211 *
@@ -228,7 +225,6 @@ EXPORT_SYMBOL(acpi_ut_debug_print);
228 * debug_print so that the same macros can be used. 225 * debug_print so that the same macros can be used.
229 * 226 *
230 ******************************************************************************/ 227 ******************************************************************************/
231
232void ACPI_INTERNAL_VAR_XFACE 228void ACPI_INTERNAL_VAR_XFACE
233acpi_ut_debug_print_raw(u32 requested_debug_level, 229acpi_ut_debug_print_raw(u32 requested_debug_level,
234 u32 line_number, 230 u32 line_number,
@@ -246,7 +242,7 @@ acpi_ut_debug_print_raw(u32 requested_debug_level,
246 acpi_os_vprintf(format, args); 242 acpi_os_vprintf(format, args);
247} 243}
248 244
249EXPORT_SYMBOL(acpi_ut_debug_print_raw); 245ACPI_EXPORT_SYMBOL(acpi_ut_debug_print_raw)
250 246
251/******************************************************************************* 247/*******************************************************************************
252 * 248 *
@@ -263,7 +259,6 @@ EXPORT_SYMBOL(acpi_ut_debug_print_raw);
263 * set in debug_level 259 * set in debug_level
264 * 260 *
265 ******************************************************************************/ 261 ******************************************************************************/
266
267void 262void
268acpi_ut_trace(u32 line_number, 263acpi_ut_trace(u32 line_number,
269 const char *function_name, char *module_name, u32 component_id) 264 const char *function_name, char *module_name, u32 component_id)
@@ -277,7 +272,7 @@ acpi_ut_trace(u32 line_number,
277 component_id, "%s\n", acpi_gbl_fn_entry_str); 272 component_id, "%s\n", acpi_gbl_fn_entry_str);
278} 273}
279 274
280EXPORT_SYMBOL(acpi_ut_trace); 275ACPI_EXPORT_SYMBOL(acpi_ut_trace)
281 276
282/******************************************************************************* 277/*******************************************************************************
283 * 278 *
@@ -295,7 +290,6 @@ EXPORT_SYMBOL(acpi_ut_trace);
295 * set in debug_level 290 * set in debug_level
296 * 291 *
297 ******************************************************************************/ 292 ******************************************************************************/
298
299void 293void
300acpi_ut_trace_ptr(u32 line_number, 294acpi_ut_trace_ptr(u32 line_number,
301 const char *function_name, 295 const char *function_name,
@@ -402,7 +396,7 @@ acpi_ut_exit(u32 line_number,
402 acpi_gbl_nesting_level--; 396 acpi_gbl_nesting_level--;
403} 397}
404 398
405EXPORT_SYMBOL(acpi_ut_exit); 399ACPI_EXPORT_SYMBOL(acpi_ut_exit)
406 400
407/******************************************************************************* 401/*******************************************************************************
408 * 402 *
@@ -420,7 +414,6 @@ EXPORT_SYMBOL(acpi_ut_exit);
420 * set in debug_level. Prints exit status also. 414 * set in debug_level. Prints exit status also.
421 * 415 *
422 ******************************************************************************/ 416 ******************************************************************************/
423
424void 417void
425acpi_ut_status_exit(u32 line_number, 418acpi_ut_status_exit(u32 line_number,
426 const char *function_name, 419 const char *function_name,
@@ -444,7 +437,7 @@ acpi_ut_status_exit(u32 line_number,
444 acpi_gbl_nesting_level--; 437 acpi_gbl_nesting_level--;
445} 438}
446 439
447EXPORT_SYMBOL(acpi_ut_status_exit); 440ACPI_EXPORT_SYMBOL(acpi_ut_status_exit)
448 441
449/******************************************************************************* 442/*******************************************************************************
450 * 443 *
@@ -462,7 +455,6 @@ EXPORT_SYMBOL(acpi_ut_status_exit);
462 * set in debug_level. Prints exit value also. 455 * set in debug_level. Prints exit value also.
463 * 456 *
464 ******************************************************************************/ 457 ******************************************************************************/
465
466void 458void
467acpi_ut_value_exit(u32 line_number, 459acpi_ut_value_exit(u32 line_number,
468 const char *function_name, 460 const char *function_name,
@@ -477,7 +469,7 @@ acpi_ut_value_exit(u32 line_number,
477 acpi_gbl_nesting_level--; 469 acpi_gbl_nesting_level--;
478} 470}
479 471
480EXPORT_SYMBOL(acpi_ut_value_exit); 472ACPI_EXPORT_SYMBOL(acpi_ut_value_exit)
481 473
482/******************************************************************************* 474/*******************************************************************************
483 * 475 *
@@ -495,7 +487,6 @@ EXPORT_SYMBOL(acpi_ut_value_exit);
495 * set in debug_level. Prints exit value also. 487 * set in debug_level. Prints exit value also.
496 * 488 *
497 ******************************************************************************/ 489 ******************************************************************************/
498
499void 490void
500acpi_ut_ptr_exit(u32 line_number, 491acpi_ut_ptr_exit(u32 line_number,
501 const char *function_name, 492 const char *function_name,