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