Changeset da79d0fd in mainline
- Timestamp:
- 2005-05-13T20:51:40Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 244f284
- Parents:
- f2ffad4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/print.h
rf2ffad4 rda79d0fd 35 35 #define INT16 2 36 36 #define INT32 4 37 #define INT64 8 37 38 38 39 static void print_str(const char *str); -
src/debug/print.c
rf2ffad4 rda79d0fd 111 111 * and printed as a NULL terminated string. 112 112 * c The next variant argument is treated as a single char. 113 * p The next variant argument is treated as a maximum 114 * bit-width integer with respect to architecture 115 * and printed in full hexadecimal width. 116 * P As with 'p', but '0x' is prefixed. 117 * q The next variant argument is treated as a 64b integer 118 * and printed in full hexadecimal width. 119 * Q As with 'q', but '0x' is prefixed. 113 120 * l The next variant argument is treated as a 32b integer 114 121 * and printed in full hexadecimal width. … … 170 177 * Hexadecimal conversions with fixed width. 171 178 */ 179 case 'P': 180 print_str("0x"); 181 case 'p': 182 print_fixed_hex(va_arg(ap, __native), sizeof(__native)); 183 goto loop; 184 185 case 'Q': 186 print_str("0x"); 187 case 'q': 188 print_fixed_hex(va_arg(ap, __native), INT64); 189 goto loop; 190 172 191 case 'L': 173 192 print_str("0x"); -
src/main/main.c
rf2ffad4 rda79d0fd 117 117 printf("%s\n%s\n", project, copyright); 118 118 119 printf("% L: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",119 printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n", 120 120 config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024); 121 121
Note:
See TracChangeset
for help on using the changeset viewer.