Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2018 01:28:46 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339225 - head/sys/dev/e1000
Message-ID:  <201810080128.w981SkAD064724@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Mon Oct  8 01:28:46 2018
New Revision: 339225
URL: https://svnweb.freebsd.org/changeset/base/339225

Log:
  em/igb:  Do not print link state messages
  
  These messages are totally redundant with the iflib messages.
  They're also not very useful, since they don't include the
  interface name.
  
  Discussed with:	shurd
  Approved by:	re (rgrimes)
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Sun Oct  7 19:50:44 2018	(r339224)
+++ head/sys/dev/e1000/if_em.c	Mon Oct  8 01:28:46 2018	(r339225)
@@ -1804,13 +1804,11 @@ em_if_update_admin_status(if_ctx_t ctx)
 		}
 		iflib_link_state_change(ctx, LINK_STATE_UP,
 		    IF_Mbps(adapter->link_speed));
-		printf("Link state changed to up\n");
 	} else if (!link_check && (adapter->link_active == 1)) {
 		adapter->link_speed = 0;
 		adapter->link_duplex = 0;
 		adapter->link_active = 0;
 		iflib_link_state_change(ctx, LINK_STATE_DOWN, 0);
-		printf("Link state changed to down\n");
 	}
 	em_update_stats_counters(adapter);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810080128.w981SkAD064724>