[igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr
Petri Latvala
petri.latvala at intel.com
Mon Sep 9 11:50:31 UTC 2019
---
runner/executor.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/runner/executor.c b/runner/executor.c
index 5ed191f9..db300e89 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -210,8 +210,15 @@ static bool can_ping(void)
PING_INFO_LATENCY,
&latency,
&len);
- if (latency >= 0.0)
+ if (latency >= 0.0) {
+ fprintf(stderr,
+ "ping: Successful ping response in %f seconds\n",
+ latency);
return true;
+ } else {
+ fprintf(stderr,
+ "ping: No response...\n");
+ }
}
}
--
2.19.1
More information about the igt-dev
mailing list