wlanstats: print timestamp

Print timestamp in addition to data for more useful debugging.

Discussed with:	adrian
This commit is contained in:
Eitan Adler 2014-03-12 15:14:55 +00:00
parent 2309fa9b92
commit cb48cb23cb

View file

@ -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 */