Rev 1880 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1880 | Rev 2015 | ||
---|---|---|---|
Line 228... | Line 228... | ||
228 | 228 | ||
229 | for (i = 0; i < depth; i++) |
229 | for (i = 0; i < depth; i++) |
230 | printf(" "); |
230 | printf(" "); |
231 | 231 | ||
232 | switch (root->val_type) { |
232 | switch (root->val_type) { |
233 | case SYSINFO_VAL_UNDEFINED: |
233 | case SYSINFO_VAL_UNDEFINED: |
234 | val = 0; |
234 | val = 0; |
235 | vtype = "UND"; |
235 | vtype = "UND"; |
236 | break; |
236 | break; |
237 | case SYSINFO_VAL_VAL: |
237 | case SYSINFO_VAL_VAL: |
238 | val = root->val.val; |
238 | val = root->val.val; |
239 | vtype = "VAL"; |
239 | vtype = "VAL"; |
240 | break; |
240 | break; |
241 | case SYSINFO_VAL_FUNCTION: |
241 | case SYSINFO_VAL_FUNCTION: |
242 | val = ((sysinfo_val_fn_t) (root->val.fn)) (root); |
242 | val = ((sysinfo_val_fn_t) (root->val.fn)) (root); |
243 | vtype = "FUN"; |
243 | vtype = "FUN"; |
244 | break; |
244 | break; |
245 | } |
245 | } |
246 | 246 | ||
247 | printf("%s %s val:%d(%x) sub:%s\n", root->name, vtype, val, val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ? "TAB" : "FUN")); |
247 | printf("%s %s val:%d(%x) sub:%s\n", root->name, vtype, val, |
- | 248 | val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? |
|
- | 249 | "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ? |
|
- | 250 | "TAB" : "FUN")); |
|
248 | 251 | ||
249 | if (root->subinfo_type == SYSINFO_SUBINFO_TABLE) |
252 | if (root->subinfo_type == SYSINFO_SUBINFO_TABLE) |
250 | sysinfo_dump(&(root -> subinfo.table), depth + 1); |
253 | sysinfo_dump(&(root -> subinfo.table), depth + 1); |
251 | 254 | ||
252 | root = root->next; |
255 | root = root->next; |