summaryrefslogtreecommitdiffstats
path: root/src/usr/errl
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2014-09-30 08:22:11 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-10-23 04:51:02 -0500
commita9010ccc1130b81e45d1151bb5de9453d31c08a5 (patch)
treeecc60da4bd3623cc97851dfa75e98293f9c77bdd /src/usr/errl
parenta6b67089037c83373f548749a463dfd769938b77 (diff)
downloadtalos-hostboot-a9010ccc1130b81e45d1151bb5de9453d31c08a5.tar.gz
talos-hostboot-a9010ccc1130b81e45d1151bb5de9453d31c08a5.zip
IPMI Block Transfer implementation
Change-Id: I8f6a590b29d9171389d10abc5b6e68f91ac94d16 RTC: 114907 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13721 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl')
-rw-r--r--src/usr/errl/test/errluserdetailtest.H14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/errl/test/errluserdetailtest.H b/src/usr/errl/test/errluserdetailtest.H
index 714f7f0d9..17b9e454e 100644
--- a/src/usr/errl/test/errluserdetailtest.H
+++ b/src/usr/errl/test/errluserdetailtest.H
@@ -32,6 +32,7 @@
*
*/
+#include <stdio.h>
#include <cxxtest/TestSuite.H>
#include <errl/errlentry.H>
#include <errl/errluserdetails.H>
@@ -93,6 +94,18 @@ public:
ErrlUserDetailsString stringUD("String test - string 3");
stringUD.addToLog(errl);
+ // Add a little test for making strings on the fly
+ {
+ const int test_data = 0xfeedface;
+ const char* format = "msg_respond() i/o error (transmit) 0x%x";
+ const size_t output_size = strlen(format) + (sizeof(int) * 2) + 1;
+ char output[output_size];
+ snprintf(output, output_size, format, test_data);
+
+ // Add msg_respond rc
+ ERRORLOG::ErrlUserDetailsString(output).addToLog(errl);
+ }
+
// shove a lot of traces here, so that we test the truncate in the
// write to PNOR
errl->collectTrace("TARG", 1024);
@@ -469,4 +482,3 @@ public:
};
#endif
-
OpenPOWER on IntegriCloud