nsdump.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. /******************************************************************************
  2. *
  3. * Module Name: nsdump - table dumping routines for debug
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2005, R. Byron Moore
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #include <acpi/acpi.h>
  43. #include <acpi/acnamesp.h>
  44. #include <acpi/acparser.h>
  45. #define _COMPONENT ACPI_NAMESPACE
  46. ACPI_MODULE_NAME ("nsdump")
  47. /* Local prototypes */
  48. #ifdef ACPI_OBSOLETE_FUNCTIONS
  49. void
  50. acpi_ns_dump_root_devices (
  51. void);
  52. static acpi_status
  53. acpi_ns_dump_one_device (
  54. acpi_handle obj_handle,
  55. u32 level,
  56. void *context,
  57. void **return_value);
  58. #endif
  59. #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
  60. /*******************************************************************************
  61. *
  62. * FUNCTION: acpi_ns_print_pathname
  63. *
  64. * PARAMETERS: num_segments - Number of ACPI name segments
  65. * Pathname - The compressed (internal) path
  66. *
  67. * RETURN: None
  68. *
  69. * DESCRIPTION: Print an object's full namespace pathname
  70. *
  71. ******************************************************************************/
  72. void
  73. acpi_ns_print_pathname (
  74. u32 num_segments,
  75. char *pathname)
  76. {
  77. acpi_native_uint i;
  78. ACPI_FUNCTION_NAME ("ns_print_pathname");
  79. if (!(acpi_dbg_level & ACPI_LV_NAMES) || !(acpi_dbg_layer & ACPI_NAMESPACE)) {
  80. return;
  81. }
  82. /* Print the entire name */
  83. ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "["));
  84. while (num_segments) {
  85. for (i = 0; i < 4; i++) {
  86. ACPI_IS_PRINT (pathname[i]) ?
  87. acpi_os_printf ("%c", pathname[i]) :
  88. acpi_os_printf ("?");
  89. }
  90. pathname += ACPI_NAME_SIZE;
  91. num_segments--;
  92. if (num_segments) {
  93. acpi_os_printf (".");
  94. }
  95. }
  96. acpi_os_printf ("]\n");
  97. }
  98. /*******************************************************************************
  99. *
  100. * FUNCTION: acpi_ns_dump_pathname
  101. *
  102. * PARAMETERS: Handle - Object
  103. * Msg - Prefix message
  104. * Level - Desired debug level
  105. * Component - Caller's component ID
  106. *
  107. * RETURN: None
  108. *
  109. * DESCRIPTION: Print an object's full namespace pathname
  110. * Manages allocation/freeing of a pathname buffer
  111. *
  112. ******************************************************************************/
  113. void
  114. acpi_ns_dump_pathname (
  115. acpi_handle handle,
  116. char *msg,
  117. u32 level,
  118. u32 component)
  119. {
  120. ACPI_FUNCTION_TRACE ("ns_dump_pathname");
  121. /* Do this only if the requested debug level and component are enabled */
  122. if (!(acpi_dbg_level & level) || !(acpi_dbg_layer & component)) {
  123. return_VOID;
  124. }
  125. /* Convert handle to a full pathname and print it (with supplied message) */
  126. acpi_ns_print_node_pathname (handle, msg);
  127. acpi_os_printf ("\n");
  128. return_VOID;
  129. }
  130. /*******************************************************************************
  131. *
  132. * FUNCTION: acpi_ns_dump_one_object
  133. *
  134. * PARAMETERS: obj_handle - Node to be dumped
  135. * Level - Nesting level of the handle
  136. * Context - Passed into walk_namespace
  137. * return_value - Not used
  138. *
  139. * RETURN: Status
  140. *
  141. * DESCRIPTION: Dump a single Node
  142. * This procedure is a user_function called by acpi_ns_walk_namespace.
  143. *
  144. ******************************************************************************/
  145. acpi_status
  146. acpi_ns_dump_one_object (
  147. acpi_handle obj_handle,
  148. u32 level,
  149. void *context,
  150. void **return_value)
  151. {
  152. struct acpi_walk_info *info = (struct acpi_walk_info *) context;
  153. struct acpi_namespace_node *this_node;
  154. union acpi_operand_object *obj_desc = NULL;
  155. acpi_object_type obj_type;
  156. acpi_object_type type;
  157. u32 bytes_to_dump;
  158. u32 dbg_level;
  159. u32 i;
  160. ACPI_FUNCTION_NAME ("ns_dump_one_object");
  161. /* Is output enabled? */
  162. if (!(acpi_dbg_level & info->debug_level)) {
  163. return (AE_OK);
  164. }
  165. if (!obj_handle) {
  166. ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Null object handle\n"));
  167. return (AE_OK);
  168. }
  169. this_node = acpi_ns_map_handle_to_node (obj_handle);
  170. type = this_node->type;
  171. /* Check if the owner matches */
  172. if ((info->owner_id != ACPI_OWNER_ID_MAX) &&
  173. (info->owner_id != this_node->owner_id)) {
  174. return (AE_OK);
  175. }
  176. if (!(info->display_type & ACPI_DISPLAY_SHORT)) {
  177. /* Indent the object according to the level */
  178. acpi_os_printf ("%2d%*s", (u32) level - 1, (int) level * 2, " ");
  179. /* Check the node type and name */
  180. if (type > ACPI_TYPE_LOCAL_MAX) {
  181. ACPI_REPORT_WARNING (("Invalid ACPI Type %08X\n", type));
  182. }
  183. if (!acpi_ut_valid_acpi_name (this_node->name.integer)) {
  184. ACPI_REPORT_WARNING (("Invalid ACPI Name %08X\n",
  185. this_node->name.integer));
  186. }
  187. acpi_os_printf ("%4.4s", acpi_ut_get_node_name (this_node));
  188. }
  189. /*
  190. * Now we can print out the pertinent information
  191. */
  192. acpi_os_printf (" %-12s %p ",
  193. acpi_ut_get_type_name (type), this_node);
  194. dbg_level = acpi_dbg_level;
  195. acpi_dbg_level = 0;
  196. obj_desc = acpi_ns_get_attached_object (this_node);
  197. acpi_dbg_level = dbg_level;
  198. switch (info->display_type & ACPI_DISPLAY_MASK) {
  199. case ACPI_DISPLAY_SUMMARY:
  200. if (!obj_desc) {
  201. /* No attached object, we are done */
  202. acpi_os_printf ("\n");
  203. return (AE_OK);
  204. }
  205. switch (type) {
  206. case ACPI_TYPE_PROCESSOR:
  207. acpi_os_printf ("ID %X Len %.4X Addr %p\n",
  208. obj_desc->processor.proc_id, obj_desc->processor.length,
  209. (char *) obj_desc->processor.address);
  210. break;
  211. case ACPI_TYPE_DEVICE:
  212. acpi_os_printf ("Notify Object: %p\n", obj_desc);
  213. break;
  214. case ACPI_TYPE_METHOD:
  215. acpi_os_printf ("Args %X Len %.4X Aml %p\n",
  216. (u32) obj_desc->method.param_count,
  217. obj_desc->method.aml_length, obj_desc->method.aml_start);
  218. break;
  219. case ACPI_TYPE_INTEGER:
  220. acpi_os_printf ("= %8.8X%8.8X\n",
  221. ACPI_FORMAT_UINT64 (obj_desc->integer.value));
  222. break;
  223. case ACPI_TYPE_PACKAGE:
  224. if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
  225. acpi_os_printf ("Elements %.2X\n",
  226. obj_desc->package.count);
  227. }
  228. else {
  229. acpi_os_printf ("[Length not yet evaluated]\n");
  230. }
  231. break;
  232. case ACPI_TYPE_BUFFER:
  233. if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
  234. acpi_os_printf ("Len %.2X",
  235. obj_desc->buffer.length);
  236. /* Dump some of the buffer */
  237. if (obj_desc->buffer.length > 0) {
  238. acpi_os_printf (" =");
  239. for (i = 0; (i < obj_desc->buffer.length && i < 12); i++) {
  240. acpi_os_printf (" %.2hX", obj_desc->buffer.pointer[i]);
  241. }
  242. }
  243. acpi_os_printf ("\n");
  244. }
  245. else {
  246. acpi_os_printf ("[Length not yet evaluated]\n");
  247. }
  248. break;
  249. case ACPI_TYPE_STRING:
  250. acpi_os_printf ("Len %.2X ", obj_desc->string.length);
  251. acpi_ut_print_string (obj_desc->string.pointer, 32);
  252. acpi_os_printf ("\n");
  253. break;
  254. case ACPI_TYPE_REGION:
  255. acpi_os_printf ("[%s]",
  256. acpi_ut_get_region_name (obj_desc->region.space_id));
  257. if (obj_desc->region.flags & AOPOBJ_DATA_VALID) {
  258. acpi_os_printf (" Addr %8.8X%8.8X Len %.4X\n",
  259. ACPI_FORMAT_UINT64 (obj_desc->region.address),
  260. obj_desc->region.length);
  261. }
  262. else {
  263. acpi_os_printf (" [Address/Length not yet evaluated]\n");
  264. }
  265. break;
  266. case ACPI_TYPE_LOCAL_REFERENCE:
  267. acpi_os_printf ("[%s]\n",
  268. acpi_ps_get_opcode_name (obj_desc->reference.opcode));
  269. break;
  270. case ACPI_TYPE_BUFFER_FIELD:
  271. if (obj_desc->buffer_field.buffer_obj &&
  272. obj_desc->buffer_field.buffer_obj->buffer.node) {
  273. acpi_os_printf ("Buf [%4.4s]",
  274. acpi_ut_get_node_name (obj_desc->buffer_field.buffer_obj->buffer.node));
  275. }
  276. break;
  277. case ACPI_TYPE_LOCAL_REGION_FIELD:
  278. acpi_os_printf ("Rgn [%4.4s]",
  279. acpi_ut_get_node_name (obj_desc->common_field.region_obj->region.node));
  280. break;
  281. case ACPI_TYPE_LOCAL_BANK_FIELD:
  282. acpi_os_printf ("Rgn [%4.4s] Bnk [%4.4s]",
  283. acpi_ut_get_node_name (obj_desc->common_field.region_obj->region.node),
  284. acpi_ut_get_node_name (obj_desc->bank_field.bank_obj->common_field.node));
  285. break;
  286. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  287. acpi_os_printf ("Idx [%4.4s] Dat [%4.4s]",
  288. acpi_ut_get_node_name (obj_desc->index_field.index_obj->common_field.node),
  289. acpi_ut_get_node_name (obj_desc->index_field.data_obj->common_field.node));
  290. break;
  291. case ACPI_TYPE_LOCAL_ALIAS:
  292. case ACPI_TYPE_LOCAL_METHOD_ALIAS:
  293. acpi_os_printf ("Target %4.4s (%p)\n",
  294. acpi_ut_get_node_name (obj_desc), obj_desc);
  295. break;
  296. default:
  297. acpi_os_printf ("Object %p\n", obj_desc);
  298. break;
  299. }
  300. /* Common field handling */
  301. switch (type) {
  302. case ACPI_TYPE_BUFFER_FIELD:
  303. case ACPI_TYPE_LOCAL_REGION_FIELD:
  304. case ACPI_TYPE_LOCAL_BANK_FIELD:
  305. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  306. acpi_os_printf (" Off %.3X Len %.2X Acc %.2hd\n",
  307. (obj_desc->common_field.base_byte_offset * 8)
  308. + obj_desc->common_field.start_field_bit_offset,
  309. obj_desc->common_field.bit_length,
  310. obj_desc->common_field.access_byte_width);
  311. break;
  312. default:
  313. break;
  314. }
  315. break;
  316. case ACPI_DISPLAY_OBJECTS:
  317. acpi_os_printf ("O:%p", obj_desc);
  318. if (!obj_desc) {
  319. /* No attached object, we are done */
  320. acpi_os_printf ("\n");
  321. return (AE_OK);
  322. }
  323. acpi_os_printf ("(R%d)", obj_desc->common.reference_count);
  324. switch (type) {
  325. case ACPI_TYPE_METHOD:
  326. /* Name is a Method and its AML offset/length are set */
  327. acpi_os_printf (" M:%p-%X\n", obj_desc->method.aml_start,
  328. obj_desc->method.aml_length);
  329. break;
  330. case ACPI_TYPE_INTEGER:
  331. acpi_os_printf (" I:%8.8X8.8%X\n",
  332. ACPI_FORMAT_UINT64 (obj_desc->integer.value));
  333. break;
  334. case ACPI_TYPE_STRING:
  335. acpi_os_printf (" S:%p-%X\n", obj_desc->string.pointer,
  336. obj_desc->string.length);
  337. break;
  338. case ACPI_TYPE_BUFFER:
  339. acpi_os_printf (" B:%p-%X\n", obj_desc->buffer.pointer,
  340. obj_desc->buffer.length);
  341. break;
  342. default:
  343. acpi_os_printf ("\n");
  344. break;
  345. }
  346. break;
  347. default:
  348. acpi_os_printf ("\n");
  349. break;
  350. }
  351. /* If debug turned off, done */
  352. if (!(acpi_dbg_level & ACPI_LV_VALUES)) {
  353. return (AE_OK);
  354. }
  355. /* If there is an attached object, display it */
  356. dbg_level = acpi_dbg_level;
  357. acpi_dbg_level = 0;
  358. obj_desc = acpi_ns_get_attached_object (this_node);
  359. acpi_dbg_level = dbg_level;
  360. /* Dump attached objects */
  361. while (obj_desc) {
  362. obj_type = ACPI_TYPE_INVALID;
  363. acpi_os_printf ("Attached Object %p: ", obj_desc);
  364. /* Decode the type of attached object and dump the contents */
  365. switch (ACPI_GET_DESCRIPTOR_TYPE (obj_desc)) {
  366. case ACPI_DESC_TYPE_NAMED:
  367. acpi_os_printf ("(Ptr to Node)\n");
  368. bytes_to_dump = sizeof (struct acpi_namespace_node);
  369. ACPI_DUMP_BUFFER (obj_desc, bytes_to_dump);
  370. break;
  371. case ACPI_DESC_TYPE_OPERAND:
  372. obj_type = ACPI_GET_OBJECT_TYPE (obj_desc);
  373. if (obj_type > ACPI_TYPE_LOCAL_MAX) {
  374. acpi_os_printf ("(Ptr to ACPI Object type %X [UNKNOWN])\n",
  375. obj_type);
  376. bytes_to_dump = 32;
  377. }
  378. else {
  379. acpi_os_printf ("(Ptr to ACPI Object type %X [%s])\n",
  380. obj_type, acpi_ut_get_type_name (obj_type));
  381. bytes_to_dump = sizeof (union acpi_operand_object);
  382. }
  383. ACPI_DUMP_BUFFER (obj_desc, bytes_to_dump);
  384. break;
  385. default:
  386. break;
  387. }
  388. /* If value is NOT an internal object, we are done */
  389. if (ACPI_GET_DESCRIPTOR_TYPE (obj_desc) != ACPI_DESC_TYPE_OPERAND) {
  390. goto cleanup;
  391. }
  392. /*
  393. * Valid object, get the pointer to next level, if any
  394. */
  395. switch (obj_type) {
  396. case ACPI_TYPE_BUFFER:
  397. case ACPI_TYPE_STRING:
  398. /*
  399. * NOTE: takes advantage of common fields between string/buffer
  400. */
  401. bytes_to_dump = obj_desc->string.length;
  402. obj_desc = (void *) obj_desc->string.pointer;
  403. acpi_os_printf ( "(Buffer/String pointer %p length %X)\n",
  404. obj_desc, bytes_to_dump);
  405. ACPI_DUMP_BUFFER (obj_desc, bytes_to_dump);
  406. goto cleanup;
  407. case ACPI_TYPE_BUFFER_FIELD:
  408. obj_desc = (union acpi_operand_object *) obj_desc->buffer_field.buffer_obj;
  409. break;
  410. case ACPI_TYPE_PACKAGE:
  411. obj_desc = (void *) obj_desc->package.elements;
  412. break;
  413. case ACPI_TYPE_METHOD:
  414. obj_desc = (void *) obj_desc->method.aml_start;
  415. break;
  416. case ACPI_TYPE_LOCAL_REGION_FIELD:
  417. obj_desc = (void *) obj_desc->field.region_obj;
  418. break;
  419. case ACPI_TYPE_LOCAL_BANK_FIELD:
  420. obj_desc = (void *) obj_desc->bank_field.region_obj;
  421. break;
  422. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  423. obj_desc = (void *) obj_desc->index_field.index_obj;
  424. break;
  425. default:
  426. goto cleanup;
  427. }
  428. obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */
  429. }
  430. cleanup:
  431. acpi_os_printf ("\n");
  432. return (AE_OK);
  433. }
  434. #ifdef ACPI_FUTURE_USAGE
  435. /*******************************************************************************
  436. *
  437. * FUNCTION: acpi_ns_dump_objects
  438. *
  439. * PARAMETERS: Type - Object type to be dumped
  440. * display_type - 0 or ACPI_DISPLAY_SUMMARY
  441. * max_depth - Maximum depth of dump. Use ACPI_UINT32_MAX
  442. * for an effectively unlimited depth.
  443. * owner_id - Dump only objects owned by this ID. Use
  444. * ACPI_UINT32_MAX to match all owners.
  445. * start_handle - Where in namespace to start/end search
  446. *
  447. * RETURN: None
  448. *
  449. * DESCRIPTION: Dump typed objects within the loaded namespace.
  450. * Uses acpi_ns_walk_namespace in conjunction with acpi_ns_dump_one_object.
  451. *
  452. ******************************************************************************/
  453. void
  454. acpi_ns_dump_objects (
  455. acpi_object_type type,
  456. u8 display_type,
  457. u32 max_depth,
  458. acpi_owner_id owner_id,
  459. acpi_handle start_handle)
  460. {
  461. struct acpi_walk_info info;
  462. ACPI_FUNCTION_ENTRY ();
  463. info.debug_level = ACPI_LV_TABLES;
  464. info.owner_id = owner_id;
  465. info.display_type = display_type;
  466. (void) acpi_ns_walk_namespace (type, start_handle, max_depth,
  467. ACPI_NS_WALK_NO_UNLOCK, acpi_ns_dump_one_object,
  468. (void *) &info, NULL);
  469. }
  470. #endif /* ACPI_FUTURE_USAGE */
  471. /*******************************************************************************
  472. *
  473. * FUNCTION: acpi_ns_dump_entry
  474. *
  475. * PARAMETERS: Handle - Node to be dumped
  476. * debug_level - Output level
  477. *
  478. * RETURN: None
  479. *
  480. * DESCRIPTION: Dump a single Node
  481. *
  482. ******************************************************************************/
  483. void
  484. acpi_ns_dump_entry (
  485. acpi_handle handle,
  486. u32 debug_level)
  487. {
  488. struct acpi_walk_info info;
  489. ACPI_FUNCTION_ENTRY ();
  490. info.debug_level = debug_level;
  491. info.owner_id = ACPI_OWNER_ID_MAX;
  492. info.display_type = ACPI_DISPLAY_SUMMARY;
  493. (void) acpi_ns_dump_one_object (handle, 1, &info, NULL);
  494. }
  495. #ifdef ACPI_ASL_COMPILER
  496. /*******************************************************************************
  497. *
  498. * FUNCTION: acpi_ns_dump_tables
  499. *
  500. * PARAMETERS: search_base - Root of subtree to be dumped, or
  501. * NS_ALL to dump the entire namespace
  502. * max_depth - Maximum depth of dump. Use INT_MAX
  503. * for an effectively unlimited depth.
  504. *
  505. * RETURN: None
  506. *
  507. * DESCRIPTION: Dump the name space, or a portion of it.
  508. *
  509. ******************************************************************************/
  510. void
  511. acpi_ns_dump_tables (
  512. acpi_handle search_base,
  513. u32 max_depth)
  514. {
  515. acpi_handle search_handle = search_base;
  516. ACPI_FUNCTION_TRACE ("ns_dump_tables");
  517. if (!acpi_gbl_root_node) {
  518. /*
  519. * If the name space has not been initialized,
  520. * there is nothing to dump.
  521. */
  522. ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "namespace not initialized!\n"));
  523. return_VOID;
  524. }
  525. if (ACPI_NS_ALL == search_base) {
  526. /* Entire namespace */
  527. search_handle = acpi_gbl_root_node;
  528. ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "\\\n"));
  529. }
  530. acpi_ns_dump_objects (ACPI_TYPE_ANY, ACPI_DISPLAY_OBJECTS, max_depth,
  531. ACPI_OWNER_ID_MAX, search_handle);
  532. return_VOID;
  533. }
  534. #endif /* _ACPI_ASL_COMPILER */
  535. #endif /* defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) */