Changeset f8ddd17 in mainline for kernel/generic/src/sysinfo/sysinfo.c
- Timestamp:
- 2006-12-09T20:20:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b82a13c
- Parents:
- 9ab9c2ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/sysinfo.c
r9ab9c2ec rf8ddd17 231 231 232 232 switch (root->val_type) { 233 234 235 236 237 238 239 240 241 242 243 244 233 case SYSINFO_VAL_UNDEFINED: 234 val = 0; 235 vtype = "UND"; 236 break; 237 case SYSINFO_VAL_VAL: 238 val = root->val.val; 239 vtype = "VAL"; 240 break; 241 case SYSINFO_VAL_FUNCTION: 242 val = ((sysinfo_val_fn_t) (root->val.fn)) (root); 243 vtype = "FUN"; 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 252 if (root->subinfo_type == SYSINFO_SUBINFO_TABLE)
Note:
See TracChangeset
for help on using the changeset viewer.