svn commit: r263093 - head/tools/tools/iwn/iwnstats
Eitan Adler
eadler at FreeBSD.org
Wed Mar 12 15:14:56 UTC 2014
Author: eadler
Date: Wed Mar 12 15:14:55 2014
New Revision: 263093
URL: http://svnweb.freebsd.org/changeset/base/263093
Log:
wlanstats: print timestamp
Print timestamp in addition to data for more useful debugging.
Discussed with: adrian
Modified:
head/tools/tools/iwn/iwnstats/main.c
Modified: head/tools/tools/iwn/iwnstats/main.c
==============================================================================
--- head/tools/tools/iwn/iwnstats/main.c Wed Mar 12 15:13:57 2014 (r263092)
+++ head/tools/tools/iwn/iwnstats/main.c Wed Mar 12 15:14:55 2014 (r263093)
@@ -38,6 +38,7 @@
#include <err.h>
#include <net/if.h>
#include <sys/endian.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/sysctl.h>
@@ -239,9 +240,13 @@ static void
iwn_print(struct iwnstats *is)
{
struct iwn_stats *s;
+ struct timeval tv;
s = &is->st;
+ gettimeofday(&tv, NULL);
+ printf("time=%ld.%.6ld\n", (long)tv.tv_sec, (long)tv.tv_usec);
+
iwn_stats_general_print(is, s);
/* RX */
More information about the svn-src-all
mailing list