Re: [PATCH 05/19] Staging: xgifb: Improve debug strings.

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

 



Hi,

On Thu, Jul 05, 2012 at 04:45:48PM +0200, Miguel Gómez wrote:
>  	if (!htotal || !vtotal) {
> -		pr_debug("XGIfb: Invalid 'var' information\n");
> +		pr_debug("Invalid 'var' information\n");
[...]
> -		pr_err("xgifb: invalid value for option: %s\n", fullopt);
> +		pr_err("Invalid value for option: %s\n", fullopt);
[...]
> -	pr_info("xgifb: options: %s\n", options);
> +	pr_info("Options: %s\n", options);

Can you really remove the driver prefix?

>  	if (reg1 != 0xa1) { /*I/O error */
> -		dev_err(&pdev->dev, "I/O error!!!");
> +		dev_err(&pdev->dev, "I/O error!!!\n");

Those exclamation marks are just redundant noise.

> -		dev_err(&pdev->dev, "unable request memory size %x\n",
> +		dev_err(&pdev->dev, "Unable request memory size %x\n",
[...]
> -		dev_err(&pdev->dev, "no supported video mode found\n");
> +		dev_err(&pdev->dev, "No supported video mode found\n");
[...]
> -		dev_info(&pdev->dev, "added MTRR\n");
> +		dev_info(&pdev->dev, "Added MTRR\n");
[...]
> -		dev_err(&pdev->dev, "video BIOS not available\n");
> +		dev_err(&pdev->dev, "Video BIOS not available\n");
[...]
> -	dev_err(&pdev->dev, "video BIOS corrupted\n");
> +	dev_err(&pdev->dev, "Video BIOS corrupted\n");

What is the improvement?

A.
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux