]> git.sur5r.net Git - u-boot/blobdiff - test/print_ut.c
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / test / print_ut.c
index 1aa68be7a9ac6cef1e68e31e6f31b9472068091f..fb46db832e58e5692f4af32f659a0bed658b98e7 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2012, The Chromium Authors
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #define DEBUG
@@ -44,6 +43,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
 }