From: Simon Glass <sjg@chromium.org> Update the test to use both the system printf() and the U-Boot one, in the same program. This provides verification that symbol-renaming is working as expected. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/ulib/ulib_test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/ulib/ulib_test.c b/test/ulib/ulib_test.c index 5daf949a74c..c2d518e1b28 100644 --- a/test/ulib/ulib_test.c +++ b/test/ulib/ulib_test.c @@ -13,6 +13,7 @@ #include <string.h> #include <os.h> +#include <u-boot-api.h> #include <u-boot-lib.h> /* Runtime detection of link type using /proc/self/maps */ @@ -48,13 +49,16 @@ int main(int argc, char *argv[]) { int ret; + printf("Uses libc printf before ulib_init\n"); + ret = ulib_init(argv[0]); if (ret) return 1; - printf("Hello, world\n"); - printf("\n- U-Boot\n"); - printf("\nPS: This program is %s\n", detect_link_type()); + ub_printf("Hello, world from ub_printf\n"); + ub_printf("\n- U-Boot\n"); + printf("another printf()\n"); + ub_printf("\nPS: This program is %s\n", detect_link_type()); return ret; } -- 2.43.0