if (length > 255) length = 255; if (cp[length] != 0) cp[length] = 0; if (level == LOG_AAC_HIGH_ERROR) printk(KERN_WARNING "aacraid:%s", cp); else printk(KERN_INFO "aacraid:%s", cp);
if (dev->printf_enabled) { int length = val & 0xffff; int level = (val >> 16) & 0xffff;   if (length > 255) length = 255; if (cp[length] != 0) cp[length] = 0; if (level == LOG_AAC_HIGH_ERROR) printk(KERN_WARNING "aacraid:%s", cp); else printk(KERN_INFO "aacraid:%s", cp); }
void aac_printf(struct aac_dev *dev, u32 val){	int length = val & 0xffff;	int level = (val >> 16) & 0xffff;	char *cp = dev->printfbuf;		/*	 *	The size of the printfbuf is set in port.c	 *	There is no variable or define for it	 */	if (length > 255)		length = 255;	if (cp[length] != 0)		cp[length] = 0;	if (level == LOG_AAC_HIGH_ERROR)		printk(KERN_WARNING "aacraid:%s", cp);	else		printk(KERN_INFO "aacraid:%s", cp);	memset(cp, 0,  256);}