Changeset 81887b7 in mainline
- Timestamp:
- 2005-08-30T08:59:22Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00e00fa
- Parents:
- 1fbbcd6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/print.h
r1fbbcd6 r81887b7 38 38 39 39 static void print_str(const char *str); 40 static void print_fixed_hex(const __ nativenum, const int width);40 static void print_fixed_hex(const __u64 num, const int width); 41 41 static void print_number(const __native num, const unsigned int base); 42 42 -
include/stackarg.h
r1fbbcd6 r81887b7 40 40 typedef struct va_list { 41 41 int pos; 42 __ address*last;42 __u8 *last; 43 43 } va_list; 44 44 45 45 #define va_start(ap, lst) \ 46 (ap).pos = 0; \47 (ap).last = (__ address*) &(lst)46 (ap).pos = sizeof(lst); \ 47 (ap).last = (__u8 *) &(lst) 48 48 49 49 #define va_arg(ap, type) \ 50 ( (type) *((ap).last + ++((ap).pos)))50 (*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type)))) 51 51 52 52 #define va_end(ap) -
src/debug/print.c
r1fbbcd6 r81887b7 67 67 * 68 68 */ 69 void print_fixed_hex(const __ nativenum, const int width)69 void print_fixed_hex(const __u64 num, const int width) 70 70 { 71 71 int i; … … 187 187 print_str("0x"); 188 188 case 'q': 189 print_fixed_hex(va_arg(ap, __ native), INT64);189 print_fixed_hex(va_arg(ap, __u64), INT64); 190 190 goto loop; 191 191
Note:
See TracChangeset
for help on using the changeset viewer.