Skip to content

Commit

Permalink
ehea: fix interface to DLPAR tools
Browse files Browse the repository at this point in the history
Userspace DLPAR tool expects decimal numbers to be written to
and read from sysfs entries.

Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Jan-Bernd Themann authored and Jeff Garzik committed Aug 25, 2007
1 parent e3efb05 commit a8e34fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 a8e34fd

Please sign in to comment.