Changeset 0f269c2 in mainline
- Timestamp:
- 2008-06-03T14:46:06Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b8b0ca
- Parents:
- c70d693
- Location:
- kernel/generic/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cpu/cpu.c
rc70d693 r0f269c2 105 105 cpu_print_report(&cpus[i]); 106 106 else 107 printf("cpu% d: not active\n", i);107 printf("cpu%u: not active\n", i); 108 108 } 109 109 } -
kernel/generic/src/lib/func.c
rc70d693 r0f269c2 74 74 #endif 75 75 if (CPU) 76 printf("cpu% d: halted\n", CPU->id);76 printf("cpu%u: halted\n", CPU->id); 77 77 else 78 78 printf("cpu: halted\n"); -
kernel/generic/src/lib/memstr.c
rc70d693 r0f269c2 68 68 } else { 69 69 70 for (i = 0; i < cnt /sizeof(unative_t); i++)70 for (i = 0; i < cnt / sizeof(unative_t); i++) 71 71 ((unative_t *) dst)[i] = ((unative_t *) src)[i]; 72 72 73 for (j = 0; j < cnt %sizeof(unative_t); j++)73 for (j = 0; j < cnt % sizeof(unative_t); j++) 74 74 ((uint8_t *)(((unative_t *) dst) + i))[j] = ((uint8_t *)(((unative_t *) src) + i))[j]; 75 75 } -
kernel/generic/src/lib/objc_ext.c
rc70d693 r0f269c2 102 102 void __assert_fail(const char *assertion, const char *file, unsigned int line, const char *function) 103 103 { 104 panic("Run-time assertion (%s:% d:%s) failed (%s)", file, line, function ? function : "", assertion);104 panic("Run-time assertion (%s:%u:%s) failed (%s)", file, line, function ? function : "", assertion); 105 105 } 106 106 -
kernel/generic/src/sysinfo/sysinfo.c
rc70d693 r0f269c2 178 178 179 179 if (item != NULL) { /* If in subsystem, unable to create or return so unable to set */ 180 item->val.val =val;180 item->val.val = val; 181 181 item->val_type = SYSINFO_VAL_VAL; 182 182 } … … 193 193 194 194 if (item != NULL) { /* If in subsystem, unable to create or return so unable to set */ 195 item->val.fn =fn;195 item->val.fn = fn; 196 196 item->val_type = SYSINFO_VAL_FUNCTION; 197 197 } … … 245 245 } 246 246 247 printf("%s %s val:% d(%x) sub:%s\n", root->name, vtype, val,247 printf("%s %s val:%" PRIun "(%" PRIxn ") sub:%s\n", root->name, vtype, val, 248 248 val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? 249 249 "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ?
Note:
See TracChangeset
for help on using the changeset viewer.