Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 76 → Rev 77

/SPARTAN/trunk/include/print.h
34,6 → 34,7
#define INT8 1
#define INT16 2
#define INT32 4
#define INT64 8
 
static void print_str(const char *str);
static void print_fixed_hex(const __native num, const int width);
/SPARTAN/trunk/src/main/main.c
116,7 → 116,7
 
printf("%s\n%s\n", project, copyright);
 
printf("%L: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
 
arch_late_init();
/SPARTAN/trunk/src/debug/print.c
110,6 → 110,13
* s The next variant argument is treated as char*
* and printed as a NULL terminated string.
* c The next variant argument is treated as a single char.
* p The next variant argument is treated as a maximum
* bit-width integer with respect to architecture
* and printed in full hexadecimal width.
* P As with 'p', but '0x' is prefixed.
* q The next variant argument is treated as a 64b integer
* and printed in full hexadecimal width.
* Q As with 'q', but '0x' is prefixed.
* l The next variant argument is treated as a 32b integer
* and printed in full hexadecimal width.
* L As with 'l', but '0x' is prefixed.
169,6 → 176,18
/*
* Hexadecimal conversions with fixed width.
*/
case 'P':
print_str("0x");
case 'p':
print_fixed_hex(va_arg(ap, __native), sizeof(__native));
goto loop;
 
case 'Q':
print_str("0x");
case 'q':
print_fixed_hex(va_arg(ap, __native), INT64);
goto loop;
 
case 'L':
print_str("0x");
case 'l':