summaryrefslogtreecommitdiff
path: root/util/ipmi_sample_evt.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-08-09 11:42:23 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-08-09 11:42:23 +0200
commit2c088f61bf4d73964e4d73f09412ec74a52e5518 (patch)
tree63f521249dbc05c69c3b05e757882232714a2d8b /util/ipmi_sample_evt.c
parent9d9bae11084226b2e1473243d546b149cdf9e5c9 (diff)
changes to version 2.9.4
Diffstat (limited to 'util/ipmi_sample_evt.c')
-rw-r--r--util/ipmi_sample_evt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/ipmi_sample_evt.c b/util/ipmi_sample_evt.c
index b51ba24..eada5eb 100644
--- a/util/ipmi_sample_evt.c
+++ b/util/ipmi_sample_evt.c
@@ -321,7 +321,7 @@ main(int argc, char **argv)
uchar event[32]; /*usu 16 bytes */
char outbuf[160];
char *s1;
- int rlen;
+ int i, rlen;
uchar ccode;
uchar sensor_type;
@@ -411,12 +411,13 @@ main(int argc, char **argv)
ievt_siginit();
finit_ok = 1;
ret = 0; /*ignore any earlier errors, keep going*/
+ i = 0;
while (ret == 0)
{ /*wait for bmc message events*/
if (fdebug)
- msgout("%s: Polling every %d sec for a new event after id %x...\n",
- progname, wait_interval, sel_recid);
+ msgout("%s: %d Polling every %d sec for a new event after id %x\n",
+ progname, i, wait_interval, sel_recid);
rlen = sizeof(event);
ret = getevent_sel(event,&rlen,&ccode);
if (ret == 0) ret = ccode;
@@ -433,6 +434,7 @@ main(int argc, char **argv)
msgout("get_event error: ret = 0x%x\n",ret);
break;
}
+ i++;
os_usleep(wait_interval,0);
} /*end while loop*/