diff options
author | Nate Straz <nstraz@redhat.com> | 2006-08-02 13:00:29 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | c750cf3977831da3646bbfa0085147c27f4422ce (patch) | |
tree | da890bac008dfe87a2aee47595be7bf03933cfbb /hbeat.c | |
parent | 968a156b0a1bdc1fdef4144e5d56ef26ee8083d8 (diff) | |
download | qarsh-c750cf3977831da3646bbfa0085147c27f4422ce.tar.gz qarsh-c750cf3977831da3646bbfa0085147c27f4422ce.tar.xz qarsh-c750cf3977831da3646bbfa0085147c27f4422ce.zip |
Add some more logging to try to nail the false reboot bug.
Diffstat (limited to 'hbeat.c')
-rw-r--r-- | hbeat.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,7 @@ #include <stdlib.h> #include <sys/types.h> #include <time.h> +#include <stdio.h> #include "btime.h" #include "hbeat.h" @@ -110,6 +111,8 @@ hbeat(hbeat_t hbh) hbeatp->last_rhost_btime = hbeat; retval = 1; } else if (abs(hbeat - hbeatp->last_rhost_btime) > 5) { + fprintf(stderr, "Host rebooted (%d, %d)\n", + hbeat, hbeatp->last_rhost_btime); hbeatp->rhost_state = HOST_REBOOT; retval = 0; } else { |