Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64428
b: refs/heads/master
c: a8e34fd
h: refs/heads/master
v: v3
  • Loading branch information
Jan-Bernd Themann authored and Jeff Garzik committed Aug 25, 2007
1 parent e0a3585 commit 7063146
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: e3efb05468128e834cf17d492822333c6e189ae4
refs/heads/master: a8e34fda798861d0f3f12c2739c1bec258be8bed
6 changes: 3 additions & 3 deletions trunk/drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,7 @@ static ssize_t ehea_show_port_id(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev);
return sprintf(buf, "0x%X", port->logical_port_id);
return sprintf(buf, "%d", port->logical_port_id);
}

static DEVICE_ATTR(log_port_id, S_IRUSR | S_IRGRP | S_IROTH, ehea_show_port_id,
Expand Down Expand Up @@ -2781,7 +2781,7 @@ static ssize_t ehea_probe_port(struct device *dev,

u32 logical_port_id;

sscanf(buf, "%X", &logical_port_id);
sscanf(buf, "%d", &logical_port_id);

port = ehea_get_port(adapter, logical_port_id);

Expand Down Expand Up @@ -2834,7 +2834,7 @@ static ssize_t ehea_remove_port(struct device *dev,
int i;
u32 logical_port_id;

sscanf(buf, "%X", &logical_port_id);
sscanf(buf, "%d", &logical_port_id);

port = ehea_get_port(adapter, logical_port_id);

Expand Down

0 comments on commit 7063146

Please sign in to comment.