[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] More gcc4 signed/unsigned char fixes.



ChangeSet 1.1380, 2005/04/25 10:04:02+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        More gcc4 signed/unsigned char fixes.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 console.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


diff -Nru a/xen/drivers/char/console.c b/xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        2005-04-25 06:02:58 -04:00
+++ b/xen/drivers/char/console.c        2005-04-25 06:02:58 -04:00
@@ -493,10 +493,10 @@
 /* Send output direct to console, or buffer it? */
 int debugtrace_send_to_console;
 
-static unsigned char *debugtrace_buf; /* Debug-trace buffer */
-static unsigned int   debugtrace_prd; /* Producer index     */
-static unsigned int   debugtrace_kilobytes = 128, debugtrace_bytes;
-static spinlock_t debugtrace_lock = SPIN_LOCK_UNLOCKED;
+static char        *debugtrace_buf; /* Debug-trace buffer */
+static unsigned int debugtrace_prd; /* Producer index     */
+static unsigned int debugtrace_kilobytes = 128, debugtrace_bytes;
+static spinlock_t   debugtrace_lock = SPIN_LOCK_UNLOCKED;
 integer_param("debugtrace", debugtrace_kilobytes);
 
 void debugtrace_dump(void)
@@ -535,9 +535,9 @@
 {
     static char    buf[1024];
 
-    va_list        args;
-    unsigned char *p;
-    unsigned long  flags;
+    va_list       args;
+    char         *p;
+    unsigned long flags;
 
     if ( debugtrace_bytes == 0 )
         return;
@@ -582,7 +582,7 @@
         return 0;
 
     order = get_order(bytes);
-    debugtrace_buf = (unsigned char *)alloc_xenheap_pages(order);
+    debugtrace_buf = (char *)alloc_xenheap_pages(order);
     ASSERT(debugtrace_buf != NULL);
 
     memset(debugtrace_buf, '\0', bytes);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.