diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-12-07 13:29:52 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2010-12-07 13:31:48 -0500 |
commit | ac33ac610dc613b2b1c938f8b61eef651ab72563 (patch) | |
tree | ff476efa60a15e9dd929fe24e6bcc032ac40d934 | |
parent | cd38557d78554fd4318fe448f728a8d7ff1cbabb (diff) |
sfc: Log start and end of ethtool self-test at INFO level
Add message at start of self-test and increase log level of message at
end of self-test, so that any other messages produced during the
test are clearly associated with it.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r-- | drivers/net/sfc/ethtool.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index aae756bf47ee..d51a6b1f4766 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -582,6 +582,9 @@ static void efx_ethtool_self_test(struct net_device *net_dev, | |||
582 | goto fail1; | 582 | goto fail1; |
583 | } | 583 | } |
584 | 584 | ||
585 | netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", | ||
586 | (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); | ||
587 | |||
585 | /* We need rx buffers and interrupts. */ | 588 | /* We need rx buffers and interrupts. */ |
586 | already_up = (efx->net_dev->flags & IFF_UP); | 589 | already_up = (efx->net_dev->flags & IFF_UP); |
587 | if (!already_up) { | 590 | if (!already_up) { |
@@ -600,9 +603,9 @@ static void efx_ethtool_self_test(struct net_device *net_dev, | |||
600 | if (!already_up) | 603 | if (!already_up) |
601 | dev_close(efx->net_dev); | 604 | dev_close(efx->net_dev); |
602 | 605 | ||
603 | netif_dbg(efx, drv, efx->net_dev, "%s %sline self-tests\n", | 606 | netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", |
604 | rc == 0 ? "passed" : "failed", | 607 | rc == 0 ? "passed" : "failed", |
605 | (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); | 608 | (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); |
606 | 609 | ||
607 | fail2: | 610 | fail2: |
608 | fail1: | 611 | fail1: |