Lines Matching refs:str
25 char str[40]; in guid_ut_print() local
27 sprintf(str, "%pUb", guid); in guid_ut_print()
28 assert(!strcmp("01020304-0506-0708-090a-0b0c0d0e0f10", str)); in guid_ut_print()
29 sprintf(str, "%pUB", guid); in guid_ut_print()
30 assert(!strcmp("01020304-0506-0708-090A-0B0C0D0E0F10", str)); in guid_ut_print()
31 sprintf(str, "%pUl", guid); in guid_ut_print()
32 assert(!strcmp("04030201-0605-0807-090a-0b0c0d0e0f10", str)); in guid_ut_print()
33 sprintf(str, "%pUL", guid); in guid_ut_print()
34 assert(!strcmp("04030201-0605-0807-090A-0B0C0D0E0F10", str)); in guid_ut_print()
42 char str[10]; in efi_ut_print() local
62 snprintf(str, sizeof(str), "_%pD_", buf); in efi_ut_print()
63 assert(!strcmp("_/SD(3)_", str)); in efi_ut_print()
66 snprintf(str, sizeof(str), "_%pD_", NULL); in efi_ut_print()
67 assert(!strcmp("_<NULL>_", str)); in efi_ut_print()
76 char str[10], *s; in do_ut_print() local
81 snprintf(str, sizeof(str), "testing"); in do_ut_print()
82 assert(!strcmp("testing", str)); in do_ut_print()
84 snprintf(str, sizeof(str), "testing but too long"); in do_ut_print()
85 assert(!strcmp("testing b", str)); in do_ut_print()
87 snprintf(str, 1, "testing none"); in do_ut_print()
88 assert(!strcmp("", str)); in do_ut_print()
90 *str = 'x'; in do_ut_print()
91 snprintf(str, 0, "testing none"); in do_ut_print()
92 assert(*str == 'x'); in do_ut_print()
98 s = display_options_get_banner(true, str, sizeof(str)); in do_ut_print()
99 assert(s == str); in do_ut_print()
103 str[0] = '`'; in do_ut_print()
104 s = display_options_get_banner(true, str + 1, 1); in do_ut_print()
105 assert(s == str + 1); in do_ut_print()
106 assert(!strcmp("`", str)); in do_ut_print()
108 str[0] = '~'; in do_ut_print()
109 s = display_options_get_banner(true, str + 1, 2); in do_ut_print()
110 assert(s == str + 1); in do_ut_print()
111 assert(!strcmp("~\n", str)); in do_ut_print()
114 s = display_options_get_banner(false, str, sizeof(str)); in do_ut_print()
115 assert(s == str); in do_ut_print()