Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150862
b: refs/heads/master
c: 1ce1513
h: refs/heads/master
v: v3
  • Loading branch information
Karsten Keil committed Jun 11, 2009
1 parent 7a59b2c commit 5b5e1e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a745b9d91962991ce87a649a4dc3af3206c2c8b
refs/heads/master: 1ce1513f48e3bc4d55ee672f0e39f5063a02ab7a
11 changes: 5 additions & 6 deletions trunk/drivers/isdn/mISDN/dsp_pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,19 @@ static ssize_t
attr_show_args(struct device *dev, struct device_attribute *attr, char *buf)
{
struct mISDN_dsp_element *elem = dev_get_drvdata(dev);
ssize_t len = 0;
int i = 0;
int i;
char *p = buf;

*buf = 0;
for (; i < elem->num_args; ++i)
len = sprintf(buf, "%sName: %s\n%s%s%sDescription: %s\n"
"\n", buf,
for (i = 0; i < elem->num_args; i++)
p += sprintf(p, "Name: %s\n%s%s%sDescription: %s\n\n",
elem->args[i].name,
elem->args[i].def ? "Default: " : "",
elem->args[i].def ? elem->args[i].def : "",
elem->args[i].def ? "\n" : "",
elem->args[i].desc);

return len;
return p - buf;
}

static struct device_attribute element_attributes[] = {
Expand Down

0 comments on commit 5b5e1e8

Please sign in to comment.