OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90a285
)
[S390] cio: Dont print trailing \0 in modalias_show().
author
Cornelia Huck
<cornelia.huck@de.ibm.com>
Tue, 17 Jul 2007 11:36:08 +0000
(13:36 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 17 Jul 2007 11:36:20 +0000
(13:36 +0200)
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c
patch
|
blob
|
history
diff --git
a/drivers/s390/cio/device.c
b/drivers/s390/cio/device.c
index
6b264bd
..
001682e
100644
(file)
--- a/
drivers/s390/cio/device.c
+++ b/
drivers/s390/cio/device.c
@@
-272,7
+272,7
@@
modalias_show (struct device *dev, struct device_attribute *attr, char *buf)
struct ccw_device_id *id = &(cdev->id);
int len;
- len = snprint_alias(buf, PAGE_SIZE, id, "\n")
+ 1
;
+ len = snprint_alias(buf, PAGE_SIZE, id, "\n");
return len > PAGE_SIZE ? PAGE_SIZE : len;
}