Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328090
b: refs/heads/master
c: 5889335
h: refs/heads/master
v: v3
  • Loading branch information
Merav Sicron authored and David S. Miller committed Sep 24, 2012
1 parent c7fb3f7 commit 06c8b65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: b8f37a4aa053c68836deca1ddeb509ce6f5ec0ae
refs/heads/master: 5889335c506bc50b03266251ac3c8711b674ba7a
13 changes: 4 additions & 9 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ static int bnx2x_set_pauseparam(struct net_device *dev,
return 0;
}

static char *bnx2x_tests_str_arr[BNX2X_NUM_TESTS_SF] = {
static const char bnx2x_tests_str_arr[BNX2X_NUM_TESTS_SF][ETH_GSTRING_LEN] = {
"register_test (offline) ",
"memory_test (offline) ",
"int_loopback_test (offline)",
Expand Down Expand Up @@ -2536,7 +2536,7 @@ static int bnx2x_get_sset_count(struct net_device *dev, int stringset)
static void bnx2x_get_strings(struct net_device *dev, u32 stringset, u8 *buf)
{
struct bnx2x *bp = netdev_priv(dev);
int i, j, k, offset, start;
int i, j, k, start;
char queue_name[MAX_QUEUE_NAME_LEN+1];

switch (stringset) {
Expand Down Expand Up @@ -2572,13 +2572,8 @@ static void bnx2x_get_strings(struct net_device *dev, u32 stringset, u8 *buf)
start = 0;
else
start = 4;
for (i = 0, j = start; j < (start + BNX2X_NUM_TESTS(bp));
i++, j++) {
offset = sprintf(buf+32*i, "%s",
bnx2x_tests_str_arr[j]);
*(buf+offset) = '\0';
}
break;
memcpy(buf, bnx2x_tests_str_arr + start,
ETH_GSTRING_LEN * BNX2X_NUM_TESTS(bp));
}
}

Expand Down

0 comments on commit 06c8b65

Please sign in to comment.