summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-03-06 12:45:09 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2017-03-07 22:08:39 -0600
commit27c87d922b94567b05ba4c60ba67615c1568b599 (patch)
treeff0e99140524ad1539ba6721e3548229f59aab4b /tools
parent6721899ba8f85d201ba2f7f394f5b5027aedfd8b (diff)
downloadphosphor-logging-27c87d922b94567b05ba4c60ba67615c1568b599.tar.gz
phosphor-logging-27c87d922b94567b05ba4c60ba67615c1568b599.zip
Ensure using correct string length when using transaction id journal data
journald does not guarantee that sd_journal_get() returns NULL terminated strings. Specify the actual length of the string (instead of relying on functions that look for NULL terminators to determine the length) to compare the transaction id number, otherwise intermittent errors can occur. Change-Id: I58c34f377866f002a09b07810065b4e064f216b9 Closes: openbmc/openbmc#1217 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud