File: speedunknown.patch

package info (click to toggle)
golang-github-safchain-ethtool 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: makefile: 12
file content (11 lines) | stat: -rw-r--r-- 457 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/ethtool_link_settings_test.go
+++ b/ethtool_link_settings_test.go
@@ -93,7 +93,7 @@
 
 			// Basic sanity checks if it succeeded (values might be 0 or unknown)
 			if settings.Speed == SPEED_UNKNOWN { // SPEED_UNKNOWN defined in ethtool.go
-				t.Logf("Interface '%s' reported speed as SPEED_UNKNOWN (0x%x)", intfName, SPEED_UNKNOWN)
+				t.Logf("Interface '%s' reported speed as SPEED_UNKNOWN (0x%x)", intfName, uint64(SPEED_UNKNOWN))
 			}
 		}
 	}