Lines Matching +full:0 +full:- +full:42
4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/sys/printk-hooks.h>
59 "p 112 -10000 -32768 -40000 -22\n"
61 "0x1 0x1 0x1 0x1 0x1\n"
62 "0x1 0x1 0x1 0x1\n"
63 "42 42 42 42\n"
64 "-42 -42 -42 -42\n"
65 "42 42 42 42\n"
66 "42 42 42 42\n"
67 "25542abcdef 42\n"
69 "68719476735 -1 18446744073709551615 ffffffffffffffff\n"
71 "-1 -1 4294967295 ffffffff\n"
74 "0x1 0x01 0x0001 0x00000001 0x0000000000000001\n"
75 "0x1 0x 1 0x 1 0x 1\n"
76 "42 42 0042 00000042\n"
77 "-42 -42 -042 -0000042\n"
78 "42 42 42 42\n"
79 "42 42 0042 00000042\n"
80 "255 42 abcdef 42\n"
82 "68719476735 -1 18446744073709551615 ffffffffffffffff\n"
84 "-1 -1 4294967295 ffffffff\n"
87 "0xcafebabe 0xbeef 0x2a\n"
91 "p 112 -10000 -32768 -40000 -22\n"
93 "0x1 0x1 0x1 0x1 0x1\n"
94 "0x1 0x1 0x1 0x1\n"
95 "42 42 42 42\n"
96 "-42 -42 -42 -42\n"
97 "42 42 42 42\n"
98 "42 42 42 42\n"
99 "25542abcdef 42\n"
101 "0x1 0x01 0x0001 0x00000001 0x0000000000000001\n"
102 "0x1 0x 1 0x 1 0x 1\n"
103 "42 42 0042 00000042\n"
104 "-42 -42 -042 -0000042\n"
105 "42 42 42 42\n"
106 "42 42 0042 00000042\n"
107 "255 42 abcdef 42\n"
109 "68719476735 -1 18446744073709551615 ffffffffffffffff\n"
110 "0xcafebabe 0xbeef 0x2a\n"
116 "p 112 -10000 -32768 -40000 -22\n"
117 "0x1 0x01 0x0001 0x00000001 0x0000000000000001\n"
118 "0x1 0x 1 0x 1 0x 1\n"
119 "42 42 0042 00000042\n"
120 "-42 -42 -042 -0000042\n"
121 "42 42 42 42\n"
122 "42 42 0042 00000042\n"
123 "255 42 abcdef 42\n"
124 "68719476735 -1 18446744073709551615 ffffffffffffffff\n"
125 "0xcafebabe 0xbeef 0x2a\n"
129 "p 112 -10000 -32768 -40000 %lld\n"
130 "0x1 0x01 0x0001 0x00000001 0x0000000000000001\n"
131 "0x1 0x 1 0x 1 0x 1\n"
132 "42 42 0042 00000042\n"
133 "-42 -42 -042 -0000042\n"
134 "42 42 42 42\n"
135 "42 42 0042 00000042\n"
136 "255 42 abcdef 42\n"
138 "0xcafebabe 0xbeef 0x2a\n"
142 "p 112 -10000 -32768 -40000 -22\n"
143 "0x1 0x01 0x0001 0x00000001 0x0000000000000001\n"
144 "0x1 0x 1 0x 1 0x 1\n"
145 "42 42 0042 00000042\n"
146 "-42 -42 -042 -0000042\n"
147 "42 42 42 42\n"
148 "42 42 0042 00000042\n"
149 "255 42 abcdef 42\n"
150 "ERR -1 ERR ERR\n"
151 "0xcafebabe 0xbeef 0x2a\n"
163 * we know printk doesn't have full support for 64-bit values.
164 * at least show it can print uint64_t values less than 32-bits wide
169 signed short int ssi = -10000;
170 signed int si = -32768;
171 signed long sl = -40000;
172 signed long long sll = -22;
174 uint32_t hex = 0xCAFEBABE;
176 void *ptr = (void *)0xBEEF;
209 printk("0x%x 0x%02x 0x%04x 0x%08x 0x%016x\n", 1, 1, 1, 1, 1); in ZTEST()
210 printk("0x%x 0x%2x 0x%4x 0x%8x\n", 1, 1, 1, 1); in ZTEST()
211 printk("%d %02d %04d %08d\n", 42, 42, 42, 42); in ZTEST()
212 printk("%d %02d %04d %08d\n", -42, -42, -42, -42); in ZTEST()
213 printk("%u %2u %4u %8u\n", 42, 42, 42, 42); in ZTEST()
214 printk("%u %02u %04u %08u\n", 42, 42, 42, 42); in ZTEST()
215 printk("%-8u%-6d%-4x %8d\n", 0xFF, 42, 0xABCDEF, 42); in ZTEST()
216 printk("%lld %lld %llu %llx\n", 0xFFFFFFFFFULL, -1LL, -1ULL, -1ULL); in ZTEST()
217 printk("0x%x %p %-2p\n", hex, ptr, (char *)42); in ZTEST()
219 pk_console[pos] = '\0'; in ZTEST()
224 (void)memset(pk_console, 0, sizeof(pk_console)); in ZTEST()
225 count = 0; in ZTEST()
227 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
230 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
232 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
233 "0x%x 0x%02x 0x%04x 0x%08x 0x%016x\n", 1, 1, 1, 1, 1); in ZTEST()
234 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
235 "0x%x 0x%2x 0x%4x 0x%8x\n", 1, 1, 1, 1); in ZTEST()
236 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
237 "%d %02d %04d %08d\n", 42, 42, 42, 42); in ZTEST()
238 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
239 "%d %02d %04d %08d\n", -42, -42, -42, -42); in ZTEST()
240 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
241 "%u %2u %4u %8u\n", 42, 42, 42, 42); in ZTEST()
242 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
243 "%u %02u %04u %08u\n", 42, 42, 42, 42); in ZTEST()
244 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
245 "%-8u%-6d%-4x %8d\n", in ZTEST()
246 0xFF, 42, 0xABCDEF, 42); in ZTEST()
247 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
249 0xFFFFFFFFFULL, -1LL, -1ULL, -1ULL); in ZTEST()
250 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
251 "0x%x %p %-2p\n", hex, ptr, (char *)42); in ZTEST()
252 pk_console[count] = '\0'; in ZTEST()