Skip to contentSkip to conversation

ehea: fix interface to DLPAR tools

PATCH In review Jan-Bernd Themann 2 participants 2 messages Aug 22, 2007 – Aug 25, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ehea: fix interface to DLPAR tools

Userspace DLPAR tool expects decimal numbers to be written to and read from sysfs entries.

---
 drivers/net/ehea/ehea_main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ehea/ehea_main.c +3 -3
index 9756211..22d000f 100644
@@ -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,
@@ -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);
 
@@ -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);
 
Signature · 1 line
1.5.2