Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 180 → Rev 181

/SPARTAN/trunk/include/print.h
37,7 → 37,7
#define INT64 8
 
static void print_str(const char *str);
static void print_fixed_hex(const __native num, const int width);
static void print_fixed_hex(const __u64 num, const int width);
static void print_number(const __native num, const unsigned int base);
 
extern void putchar(const char c);
/SPARTAN/trunk/include/stackarg.h
39,15 → 39,15
 
typedef struct va_list {
int pos;
__address *last;
__u8 *last;
} va_list;
 
#define va_start(ap, lst) \
(ap).pos = 0; \
(ap).last = (__address *) &(lst)
(ap).pos = sizeof(lst); \
(ap).last = (__u8 *) &(lst)
 
#define va_arg(ap, type) \
((type) *((ap).last + ++((ap).pos)))
(*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type))))
 
#define va_end(ap)
 
/SPARTAN/trunk/src/debug/print.c
66,7 → 66,7
* @param width Count of digits to print.
*
*/
void print_fixed_hex(const __native num, const int width)
void print_fixed_hex(const __u64 num, const int width)
{
int i;
186,7 → 186,7
case 'Q':
print_str("0x");
case 'q':
print_fixed_hex(va_arg(ap, __native), INT64);
print_fixed_hex(va_arg(ap, __u64), INT64);
goto loop;
 
case 'L':