projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9414715
)
[POWERPC] Fix modalias content in sysfs for macio devices
author
Olaf Hering
<olaf@aepfle.de>
Mon, 2 Apr 2007 12:33:27 +0000
(14:33 +0200)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 12 Apr 2007 17:55:17 +0000
(
03:55
+1000)
Currently the buf pointer is advanced too far during each iteration.
Also terminate the string with a newline.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/macio_sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/macintosh/macio_sysfs.c
b/drivers/macintosh/macio_sysfs.c
index 8566bdfdd4b88a072c49dfc96e4b62aa730ab7c6..0a5647fb85694cf643093283b162b7a0b35c1b17 100644
(file)
--- a/
drivers/macintosh/macio_sysfs.c
+++ b/
drivers/macintosh/macio_sysfs.c
@@
-53,12
+53,14
@@
static ssize_t modalias_show (struct device *dev, struct device_attribute *attr,
buf += length;
while (cplen > 0) {
int l;
- length += sprintf (buf, "C%s", compat);
- buf += length;
+ l = sprintf (buf, "C%s", compat);
+ length += l;
+ buf += l;
l = strlen (compat) + 1;
compat += l;
cplen -= l;
}
+ length += sprintf(buf, "\n");
return length;
}
This page took
0.024683 seconds
and
5
git commands to generate.