All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH phosphor-host-ipmid] Set usec so settimeofday call doesn't fail
@ 2016-01-16 13:20 OpenBMC Patches
  2016-01-16 13:20 ` [PATCH phosphor-host-ipmid] set " OpenBMC Patches
  0 siblings, 1 reply; 2+ messages in thread
From: OpenBMC Patches @ 2016-01-16 13:20 UTC (permalink / raw)
  To: openbmc

With newer linux, settimeofday call was failing.  Initializing usec to 0 corrects issues.

https://github.com/openbmc/phosphor-host-ipmid/pull/58

Norman James (1):
  set usec so settimeofday call doesn't fail

 storagehandler.C | 1 +
 1 file changed, 1 insertion(+)

-- 
2.6.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH phosphor-host-ipmid] set usec so settimeofday call doesn't fail
  2016-01-16 13:20 [PATCH phosphor-host-ipmid] Set usec so settimeofday call doesn't fail OpenBMC Patches
@ 2016-01-16 13:20 ` OpenBMC Patches
  0 siblings, 0 replies; 2+ messages in thread
From: OpenBMC Patches @ 2016-01-16 13:20 UTC (permalink / raw)
  To: openbmc

From: Norman James <njames@us.ibm.com>

---
 storagehandler.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/storagehandler.C b/storagehandler.C
index f3e2532..a68da8f 100644
--- a/storagehandler.C
+++ b/storagehandler.C
@@ -60,6 +60,7 @@ ipmi_ret_t ipmi_storage_set_sel_time(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
 
     struct timeval sel_time;
     sel_time.tv_sec = le32toh(*secs);
+    sel_time.tv_usec = 0;
     ipmi_ret_t rc = IPMI_CC_OK;
     int rct = settimeofday(&sel_time, NULL);
 
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-16 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-16 13:20 [PATCH phosphor-host-ipmid] Set usec so settimeofday call doesn't fail OpenBMC Patches
2016-01-16 13:20 ` [PATCH phosphor-host-ipmid] set " OpenBMC Patches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.