/* sw_print_packet() prints the contents of a SideWinder packet.  */
static void sw_print_packet(char *name, int length, unsigned char *buf, char bits)
/* sw_print_packet() prints the contents of a SideWinder packet.  */
static void sw_print_packet(char *name, int length, unsigned char *buf, char bits)
{
	int i;
	printk(KERN_INFO "sidewinder.c: %s packet, %d bits. [", name, length);
	for (i = (((length + 3) >> 2) - 1); i >= 0; i--)
		printk("%x", (int)sw_get_bits(buf, i << 2, 4, bits));
	printk("]\n");
}