Thread (2 messages) flat view 2 messages, 2 authors, 2007-06-06

Re: [patch 11/18] PS3: System-bus modinfo attribute

From: Stephen Rothwell <hidden>
Date: 2007-06-06 03:18:05

On Tue, 05 Jun 2007 20:00:44 -0700 Geoff Levand [off-list ref] wrote:
+static ssize_t modalias_show(struct device *_dev, struct device_attribute *a,
+			     char *buf)
+{
+	struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
+        int len = snprintf(buf, PAGE_SIZE, "ps3:%d\n", dev->match_id);
Broken whitespace ...
+
+        return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
And here.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help