ia64/xen-unstable

changeset 1962:f1c05a13dd6c

bitkeeper revision 1.1098.1.5 (4107d93fB9w7rxImNiunJcTl4YxzoA)

Avoid being a monkey.
author sos22@donkeykong.cl.cam.ac.uk
date Wed Jul 28 16:50:07 2004 +0000 (2004-07-28)
parents 72e41275fd36
children fcf4e9746724
files xen/arch/x86/xdb.c
line diff
     1.1 --- a/xen/arch/x86/xdb.c	Wed Jul 28 16:38:37 2004 +0000
     1.2 +++ b/xen/arch/x86/xdb.c	Wed Jul 28 16:50:07 2004 +0000
     1.3 @@ -110,8 +110,6 @@ receive_command(char *recv_buf)
     1.4  static void
     1.5  u32_to_hex_u8(unsigned char val, char *buf)
     1.6  {
     1.7 -	if (val >= 256)
     1.8 -		BUG();
     1.9  	sprintf(buf, "%.02x\n", val);
    1.10  }
    1.11  
    1.12 @@ -124,7 +122,7 @@ u32_to_hex_u32(unsigned val, char *buf)
    1.13  static void
    1.14  xendbg_send_hex_u8(unsigned char val)
    1.15  {
    1.16 -	char buf[2];
    1.17 +	char buf[3];
    1.18  	u32_to_hex_u8(val, buf);
    1.19  	xendbg_send(buf, 2);
    1.20  }
    1.21 @@ -168,7 +166,7 @@ xendbg_finish_reply(void)
    1.22  static void
    1.23  xendbg_sendrep_hex_u8(unsigned val)
    1.24  {
    1.25 -	char buf[2];
    1.26 +	char buf[3];
    1.27  	u32_to_hex_u8(val, buf);
    1.28  	xendbg_sendrep_data(buf, 2);
    1.29  }
    1.30 @@ -176,7 +174,7 @@ xendbg_sendrep_hex_u8(unsigned val)
    1.31  static void
    1.32  xendbg_sendrep_hex_u32(unsigned val)
    1.33  {
    1.34 -	char buf[8];
    1.35 +	char buf[9];
    1.36  	u32_to_hex_u32(val, buf);
    1.37  	xendbg_sendrep_data(buf, 8);
    1.38  }
    1.39 @@ -200,7 +198,7 @@ handle_memory_read_command(unsigned long
    1.40  	unsigned old_s_limit;
    1.41  
    1.42  	dbg_printk("Memory read starting at %lx, length %lx.\n", addr,
    1.43 -	       length);
    1.44 +		   length);
    1.45  	old_s_limit = current->addr_limit.seg;
    1.46  	current->addr_limit.seg = ~0;
    1.47  	xendbg_start_reply();