diff options
-rw-r--r-- | external/opal-prd/Makefile | 2 | ||||
-rw-r--r-- | external/opal-prd/test/test_pnor.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile index db38d716..ff3fc73d 100644 --- a/external/opal-prd/Makefile +++ b/external/opal-prd/Makefile @@ -68,7 +68,7 @@ version.c: ../../make_version.sh .version test: test/test_pnor -test/test_pnor: test/test_pnor.o pnor.o libflash/libflash.o libflash/libffs.o +test/test_pnor: test/test_pnor.o pnor.o libflash.o libffs.o blocklevel.o file.o ecc.o $(Q_LINK)$(LINK.o) -o $@ $^ install: all 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; |