1 .. SPDX-License-Identifier: GPL-2.0+
6 Each conversion specification consists of:
8 * leading '%' character
10 * an optional minimum field width
11 * an optional precision field preceded by '.'
12 * an optional length modifier
13 * a conversion specifier
19 fill up with spaces to reach the specified length
25 add sign field of decimal conversion
28 convert to alternative form
30 * prepend 0 to octal output
31 * ignored for decimal output
32 * prepend 0X to hexadecimal output
35 fill up with zeroes to reach the specified length
44 The optional length modifier specifies the size of the argument.
47 bool, enum, short, int are passed as int
50 convert to (unsigned) short before printing.
51 Only the low 16 bits are printed.
74 Conversion specifiers control the output.
86 unsigned lower case hexadecimal
89 unsigned upper case hexadecimal
91 The floating point conversion specifiers are not implemented:
102 The following tables shows the correct combinations of modifiers and specifiers
103 for the individual integer types.
105 =================== ==================
106 Type Format specifier
107 =================== ==================
112 unsigned short %u, %x
116 unsigned long %lu, %lx
118 unsigned long long %llu, %llx
121 fdt_addr_t %pa, see pointers
122 fdt_size_t %pa, see pointers
123 phys_addr_t %pa, see pointers
124 phys_size_t %pa, see pointers
125 resource_size_t %pa, see pointers
127 ssize_t %zd, %zx, %zX
128 =================== ==================
134 a '%' character is written
137 prints a single character
146 prints a UTF-8 string (char \*)
149 prints a UTF-16 string (u16 \*)
155 prints the address the pointer points to hexadecimally
158 prints the value of a phys_addr_t value that the pointer points to
159 preceded with 0x and zero padding according to the size of phys_addr_t.
160 The following types should be printed this way:
169 prints a UEFI device path
172 prints IPv4 address, e.g. '192.168.0.1'
175 prints MAC address without separators, e.g. '001122334455'
178 print MAC address colon separated, e.g. '00:01:02:03:04:05'
181 prints GUID big endian, lower case
182 e.g. '00112233-4455-6677-8899-aabbccddeeff'
185 prints GUID big endian, upper case
186 e.g. '00112233-4455-6677-8899-AABBCCDDEEFF'
189 prints GUID little endian, lower case
190 e.g. '33221100-5544-7766-8899-aabbccddeeff'
193 prints GUID little endian, upper case
194 e.g. '33221100-5544-7766-8899-AABBCCDDEEFF'
197 prints text description of a GUID or if such is not known little endian,
198 lower case, e.g. 'system' for a GUID identifying an EFI system