Re: [PATCH] af9015: avoid magically sized temporal buffer in eeprom_dump

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

 



On Thu, 18 Jun 2009, Jan Nikitenko wrote:
> Replace printing to magically sized temporal buffer with use of KERN_CONT

temporary not temporal.

> -			sprintf(buf2, "%02x ", val);
> +			deb_info(KERN_CONT, " %02x", val);

No comma after KERN_CONT

>  		else
> -			strcpy(buf2, "-- ");
> -		strcat(buf, buf2);
> +			deb_info(KERN_CONT, " --");

No comma after KERN_CONT

Just use printk() instead of deb_info() for the ones that use KERN_CONT.

>  		if (reg == 0xff)
>  			break;
>  	}
> -	deb_info("%s\n", buf);
> +	deb_info(KERN_CONT "\n");
>  	return 0;
>  }
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux