]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - test/print_ut.c
vsprintf.c: correct printing of a NULL device path
[people/ms/u-boot.git] / test / print_ut.c
index 1aa68be7a9ac6cef1e68e31e6f31b9472068091f..d8e9da8fa8f4141235ac01d7d1654f5b6314b1f7 100644 (file)
@@ -44,6 +44,10 @@ static void efi_ut_print(void)
 
        snprintf(str, sizeof(str), "_%pD_", buf);
        assert(!strcmp("_/SD(3)_", str));
+
+       /* NULL device path */
+       snprintf(str, sizeof(str), "_%pD_", NULL);
+       assert(!strcmp("_<NULL>_", str));
 #endif
 }