summaryrefslogtreecommitdiffstats
path: root/external/opal-prd/test
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2016-01-04 13:23:08 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-01-15 15:04:57 +1100
commit477248efacbc4ca6babbf3e147b040542b68b622 (patch)
treed42ad54f3783987fa6d02c5d683b446f37dbd737 /external/opal-prd/test
parent6b53f9241cf4d044d0f0f756f4a8c9f4c55f0140 (diff)
downloadblackbird-skiboot-477248efacbc4ca6babbf3e147b040542b68b622.tar.gz
blackbird-skiboot-477248efacbc4ca6babbf3e147b040542b68b622.zip
external/opal-prd: Fix test_pnor
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/opal-prd/test')
-rw-r--r--external/opal-prd/test/test_pnor.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/external/opal-prd/test/test_pnor.c b/external/opal-prd/test/test_pnor.c
index f4b0a6d9..84e42311 100644
--- a/external/opal-prd/test/test_pnor.c
+++ b/external/opal-prd/test/test_pnor.c
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -25,6 +26,15 @@
extern void dump_parts(struct ffs_handle *ffs);
+void pr_log(int priority, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+}
+
int main(int argc, char **argv)
{
struct pnor pnor;
OpenPOWER on IntegriCloud