[PATCH phosphor-event] event log limit not considering preexisting logs

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Jun 17 08:20:36 AEST 2016


Turns out the code that checks for event log size limitations forgot
to take in to account the total size of logs that already existed.  So
it would let you create the max size of new logs rather then new+old.

I fixed this by initializing the variable when the process starts.  I
also added a test case that catches the problem.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/phosphor-event/19)
<!-- Reviewable:end -->


https://github.com/openbmc/phosphor-event/pull/19

Chris Austen (1):
  event log limit not considering preexisting logs

 message.C |  2 +-
 test.C    | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

-- 
2.8.4




More information about the openbmc mailing list