ia64/xen-unstable
changeset 4653:4c9072ada4bf
bitkeeper revision 1.1380 (426cb282h_zj6PQYX7HuwLMZrI68ig)
More gcc4 signed/unsigned char fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
More gcc4 signed/unsigned char fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Mon Apr 25 09:04:02 2005 +0000 (2005-04-25) |
parents | d769cf21930d |
children | ccc4ee412321 |
files | xen/drivers/char/console.c |
line diff
1.1 --- a/xen/drivers/char/console.c Mon Apr 25 07:55:36 2005 +0000 1.2 +++ b/xen/drivers/char/console.c Mon Apr 25 09:04:02 2005 +0000 1.3 @@ -493,10 +493,10 @@ int irq_console_getc(void) 1.4 /* Send output direct to console, or buffer it? */ 1.5 int debugtrace_send_to_console; 1.6 1.7 -static unsigned char *debugtrace_buf; /* Debug-trace buffer */ 1.8 -static unsigned int debugtrace_prd; /* Producer index */ 1.9 -static unsigned int debugtrace_kilobytes = 128, debugtrace_bytes; 1.10 -static spinlock_t debugtrace_lock = SPIN_LOCK_UNLOCKED; 1.11 +static char *debugtrace_buf; /* Debug-trace buffer */ 1.12 +static unsigned int debugtrace_prd; /* Producer index */ 1.13 +static unsigned int debugtrace_kilobytes = 128, debugtrace_bytes; 1.14 +static spinlock_t debugtrace_lock = SPIN_LOCK_UNLOCKED; 1.15 integer_param("debugtrace", debugtrace_kilobytes); 1.16 1.17 void debugtrace_dump(void) 1.18 @@ -535,9 +535,9 @@ void debugtrace_printk(const char *fmt, 1.19 { 1.20 static char buf[1024]; 1.21 1.22 - va_list args; 1.23 - unsigned char *p; 1.24 - unsigned long flags; 1.25 + va_list args; 1.26 + char *p; 1.27 + unsigned long flags; 1.28 1.29 if ( debugtrace_bytes == 0 ) 1.30 return; 1.31 @@ -582,7 +582,7 @@ static int __init debugtrace_init(void) 1.32 return 0; 1.33 1.34 order = get_order(bytes); 1.35 - debugtrace_buf = (unsigned char *)alloc_xenheap_pages(order); 1.36 + debugtrace_buf = (char *)alloc_xenheap_pages(order); 1.37 ASSERT(debugtrace_buf != NULL); 1.38 1.39 memset(debugtrace_buf, '\0', bytes);