Re: [PATCH] staging: unisys: added virtpci info entry

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

 




On 07/11/2014 08:09 PM, Greg KH wrote:
[snip]
+	if (!vbuf)
+		return -ENOMEM;
+
+	str_pos += scnprintf(vbuf + str_pos, len - str_pos,
+			" Virtual PCI Bus devices\n");
Why the leading ' '?

It's the formatting the original author chose to output the information. So that it would look something like this:

 Virtual PCI Bus devices
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
 Virtual PCI devices
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH

Instead of this:

Virtual PCI Bus devices
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
Virtual PCI devices
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
INFOFOOBLAHBLAHBLAH
[snip]
greg k-h

Thanks for the comments and suggestions. I should be sending the next patch shortly :)

Cheers,
Erik Arfvidson
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-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