diff options
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 9756211e83ce..db5747490a07 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -76,7 +76,7 @@ MODULE_PARM_DESC(rq1_entries, "Number of entries for Receive Queue 1 " | |||
76 | MODULE_PARM_DESC(sq_entries, " Number of entries for the Send Queue " | 76 | MODULE_PARM_DESC(sq_entries, " Number of entries for the Send Queue " |
77 | "[2^x - 1], x = [6..14]. Default = " | 77 | "[2^x - 1], x = [6..14]. Default = " |
78 | __MODULE_STRING(EHEA_DEF_ENTRIES_SQ) ")"); | 78 | __MODULE_STRING(EHEA_DEF_ENTRIES_SQ) ")"); |
79 | MODULE_PARM_DESC(use_mcs, " 0:NAPI, 1:Multiple receive queues, Default = 1 "); | 79 | MODULE_PARM_DESC(use_mcs, " 0:NAPI, 1:Multiple receive queues, Default = 0 "); |
80 | 80 | ||
81 | static int port_name_cnt = 0; | 81 | static int port_name_cnt = 0; |
82 | static LIST_HEAD(adapter_list); | 82 | static LIST_HEAD(adapter_list); |
@@ -2490,7 +2490,7 @@ static ssize_t ehea_show_port_id(struct device *dev, | |||
2490 | struct device_attribute *attr, char *buf) | 2490 | struct device_attribute *attr, char *buf) |
2491 | { | 2491 | { |
2492 | struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); | 2492 | struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); |
2493 | return sprintf(buf, "0x%X", port->logical_port_id); | 2493 | return sprintf(buf, "%d", port->logical_port_id); |
2494 | } | 2494 | } |
2495 | 2495 | ||
2496 | static DEVICE_ATTR(log_port_id, S_IRUSR | S_IRGRP | S_IROTH, ehea_show_port_id, | 2496 | 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, | |||
2781 | 2781 | ||
2782 | u32 logical_port_id; | 2782 | u32 logical_port_id; |
2783 | 2783 | ||
2784 | sscanf(buf, "%X", &logical_port_id); | 2784 | sscanf(buf, "%d", &logical_port_id); |
2785 | 2785 | ||
2786 | port = ehea_get_port(adapter, logical_port_id); | 2786 | port = ehea_get_port(adapter, logical_port_id); |
2787 | 2787 | ||
@@ -2834,7 +2834,7 @@ static ssize_t ehea_remove_port(struct device *dev, | |||
2834 | int i; | 2834 | int i; |
2835 | u32 logical_port_id; | 2835 | u32 logical_port_id; |
2836 | 2836 | ||
2837 | sscanf(buf, "%X", &logical_port_id); | 2837 | sscanf(buf, "%d", &logical_port_id); |
2838 | 2838 | ||
2839 | port = ehea_get_port(adapter, logical_port_id); | 2839 | port = ehea_get_port(adapter, logical_port_id); |
2840 | 2840 | ||