printk(KERN_WARNING "BT: internal error: sequence mismatch\n"); 
printk(KERN_DEBUG "BT: internal error: sequence mismatch\n"); 
static inline int read_all_bytes(struct si_sm_data *bt){	unsigned char i;	bt->read_data[0] = BMC2HOST;	bt->read_count = bt->read_data[0];	if (bt_debug & BT_DEBUG_MSG)    		printk(KERN_WARNING "BT: read %d bytes:", bt->read_count);	/* minimum: length, NetFn, Seq, Cmd, cCode == 5 total, or 4 more	   following the length byte. */	if (bt->read_count < 4 || bt->read_count >= IPMI_MAX_MSG_LENGTH) {		if (bt_debug & BT_DEBUG_MSG)			printk("bad length %d\n", bt->read_count);		bt->truncated = 1;		return 1;	/* let next XACTION START clean it up */	}	for (i = 1; i <= bt->read_count; i++)	       bt->read_data[i] = BMC2HOST;	bt->read_count++;	/* account for the length byte */	if (bt_debug & BT_DEBUG_MSG) {	    	for (i = 0; i < bt->read_count; i++)			printk (" %02x", bt->read_data[i]);	    	printk ("\n");	}	if (bt->seq != bt->write_data[2])	/* idiot check */		printk(KERN_WARNING "BT: internal error: sequence mismatch\n");	/* per the spec, the (NetFn, Seq, Cmd) tuples should match */	if ((bt->read_data[3] == bt->write_data[3]) &&		/* Cmd */        	(bt->read_data[2] == bt->write_data[2]) &&	/* Sequence */        	((bt->read_data[1] & 0xF8) == (bt->write_data[1] & 0xF8)))			return 1;	if (bt_debug & BT_DEBUG_MSG)	       printk(KERN_WARNING "BT: bad packet: "		"want 0x(%02X, %02X, %02X) got (%02X, %02X, %02X)\n",		bt->write_data[1], bt->write_data[2], bt->write_data[3],		bt->read_data[1],  bt->read_data[2],  bt->read_data[3]);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/c4edff1c19ef23e15aae64ca03f32c6719822d54/ipmi_bt_sm.c/clean/drivers/char/ipmi/ipmi_bt_sm.c