blob: 65ea5915178b4b9842474b7908d06660444aae34 [file] [log] [blame]
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -03001=========================================
2How to get printk format specifiers right
3=========================================
4
5:Author: Randy Dunlap <rdunlap@infradead.org>
6:Author: Andrew Murray <amurray@mpc-data.co.uk>
7
8
9Integer types
10=============
11
12::
13
14 If variable is of Type, use printk format specifier:
15 ------------------------------------------------------------
Randy Dunlapb67ad182008-11-12 13:26:55 -080016 int %d or %x
17 unsigned int %u or %x
18 long %ld or %lx
19 unsigned long %lu or %lx
20 long long %lld or %llx
21 unsigned long long %llu or %llx
22 size_t %zu or %zx
23 ssize_t %zd or %zx
Geert Uytterhoevene8a7ba52015-04-15 16:17:17 -070024 s32 %d or %x
25 u32 %u or %x
26 s64 %lld or %llx
27 u64 %llu or %llx
28
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030029If <type> is dependent on a config option for its size (e.g., ``sector_t``,
30``blkcnt_t``) or is architecture-dependent for its size (e.g., ``tcflag_t``),
31use a format specifier of its largest possible type and explicitly cast to it.
32
33Example::
Geert Uytterhoevene8a7ba52015-04-15 16:17:17 -070034
35 printk("test: sector number/total blocks: %llu/%llu\n",
36 (unsigned long long)sector, (unsigned long long)blockcount);
37
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030038Reminder: ``sizeof()`` result is of type ``size_t``.
Geert Uytterhoevene8a7ba52015-04-15 16:17:17 -070039
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030040The kernel's printf does not support ``%n``. For obvious reasons, floating
41point formats (``%e, %f, %g, %a``) are also not recognized. Use of any
Rasmus Villemoesd7ec9a02015-11-06 16:30:35 -080042unsupported specifier or length qualifier results in a WARN and early
43return from vsnprintf.
Randy Dunlapb67ad182008-11-12 13:26:55 -080044
Andrew Murray04c55712011-06-15 12:57:09 -070045Raw pointer value SHOULD be printed with %p. The kernel supports
46the following extended format specifiers for pointer types:
47
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030048Symbols/Function Pointers
49=========================
50
51::
Andrew Murray04c55712011-06-15 12:57:09 -070052
53 %pF versatile_init+0x0/0x110
54 %pf versatile_init
55 %pS versatile_init+0x0/0x110
Joe Perchesb0d33c22012-12-12 10:18:50 -080056 %pSR versatile_init+0x9/0x110
57 (with __builtin_extract_return_addr() translation)
Andrew Murray04c55712011-06-15 12:57:09 -070058 %ps versatile_init
59 %pB prev_fn_of_versatile_init+0x88/0x88
60
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030061For printing symbols and function pointers. The ``S`` and ``s`` specifiers
62result in the symbol name with (``S``) or without (``s``) offsets. Where
63this is used on a kernel without KALLSYMS - the symbol address is
64printed instead.
Andrew Murray04c55712011-06-15 12:57:09 -070065
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030066The ``B`` specifier results in the symbol name with offsets and should be
67used when printing stack backtraces. The specifier takes into
68consideration the effect of compiler optimisations which may occur
69when tail-call``s are used and marked with the noreturn GCC attribute.
Andrew Murray04c55712011-06-15 12:57:09 -070070
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030071On ia64, ppc64 and parisc64 architectures function pointers are
72actually function descriptors which must first be resolved. The ``F`` and
73``f`` specifiers perform this resolution and then provide the same
74functionality as the ``S`` and ``s`` specifiers.
Andrew Murray04c55712011-06-15 12:57:09 -070075
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030076Kernel Pointers
77===============
78
79::
Andrew Murray04c55712011-06-15 12:57:09 -070080
81 %pK 0x01234567 or 0x0123456789abcdef
82
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030083For printing kernel pointers which should be hidden from unprivileged
84users. The behaviour of ``%pK`` depends on the ``kptr_restrict sysctl`` - see
85Documentation/sysctl/kernel.txt for more details.
Andrew Murray04c55712011-06-15 12:57:09 -070086
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030087Struct Resources
88================
89
90::
Andrew Murray04c55712011-06-15 12:57:09 -070091
92 %pr [mem 0x60000000-0x6fffffff flags 0x2200] or
93 [mem 0x0000000060000000-0x000000006fffffff flags 0x2200]
94 %pR [mem 0x60000000-0x6fffffff pref] or
95 [mem 0x0000000060000000-0x000000006fffffff pref]
96
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -030097For printing struct resources. The ``R`` and ``r`` specifiers result in a
98printed resource with (``R``) or without (``r``) a decoded flags member.
99Passed by reference.
Andrew Murray04c55712011-06-15 12:57:09 -0700100
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300101Physical addresses types ``phys_addr_t``
102========================================
103
104::
Stepan Moskovchenko7d799212013-02-21 16:43:09 -0800105
Joe Perchesaaf07622014-01-23 15:54:17 -0800106 %pa[p] 0x01234567 or 0x0123456789abcdef
Stepan Moskovchenko7d799212013-02-21 16:43:09 -0800107
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300108For printing a ``phys_addr_t`` type (and its derivatives, such as
109``resource_size_t``) which can vary based on build options, regardless of
110the width of the CPU data path. Passed by reference.
Stepan Moskovchenko7d799212013-02-21 16:43:09 -0800111
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300112DMA addresses types ``dma_addr_t``
113==================================
114
115::
Joe Perchesaaf07622014-01-23 15:54:17 -0800116
117 %pad 0x01234567 or 0x0123456789abcdef
118
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300119For printing a ``dma_addr_t`` type which can vary based on build options,
120regardless of the width of the CPU data path. Passed by reference.
Joe Perchesaaf07622014-01-23 15:54:17 -0800121
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300122Raw buffer as an escaped string
123===============================
124
125::
Andy Shevchenko71dca952014-10-13 15:55:18 -0700126
127 %*pE[achnops]
128
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300129For printing raw buffer as an escaped string. For the following buffer::
Andy Shevchenko71dca952014-10-13 15:55:18 -0700130
131 1b 62 20 5c 43 07 22 90 0d 5d
132
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300133few examples show how the conversion would be done (the result string
134without surrounding quotes)::
Andy Shevchenko71dca952014-10-13 15:55:18 -0700135
136 %*pE "\eb \C\a"\220\r]"
137 %*pEhp "\x1bb \C\x07"\x90\x0d]"
138 %*pEa "\e\142\040\\\103\a\042\220\r\135"
139
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300140The conversion rules are applied according to an optional combination
141of flags (see :c:func:`string_escape_mem` kernel documentation for the
142details):
Andy Shevchenko71dca952014-10-13 15:55:18 -0700143
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300144 - ``a`` - ESCAPE_ANY
145 - ``c`` - ESCAPE_SPECIAL
146 - ``h`` - ESCAPE_HEX
147 - ``n`` - ESCAPE_NULL
148 - ``o`` - ESCAPE_OCTAL
149 - ``p`` - ESCAPE_NP
150 - ``s`` - ESCAPE_SPACE
Andy Shevchenko71dca952014-10-13 15:55:18 -0700151
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300152By default ESCAPE_ANY_NP is used.
Andy Shevchenko71dca952014-10-13 15:55:18 -0700153
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300154ESCAPE_ANY_NP is the sane choice for many cases, in particularly for
155printing SSIDs.
156
157If field width is omitted the 1 byte only will be escaped.
158
159Raw buffer as a hex string
160==========================
161
162::
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800163
Andy Shevchenko31550a12012-07-30 14:40:27 -0700164 %*ph 00 01 02 ... 3f
165 %*phC 00:01:02: ... :3f
166 %*phD 00-01-02- ... -3f
167 %*phN 000102 ... 3f
168
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300169For printing a small buffers (up to 64 bytes long) as a hex string with
170certain separator. For the larger buffers consider to use
171:c:func:`print_hex_dump`.
Andy Shevchenko31550a12012-07-30 14:40:27 -0700172
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300173MAC/FDDI addresses
174==================
175
176::
Andrew Murray04c55712011-06-15 12:57:09 -0700177
178 %pM 00:01:02:03:04:05
Andrei Emeltchenko76597ff92012-07-30 14:40:23 -0700179 %pMR 05:04:03:02:01:00
Andrew Murray04c55712011-06-15 12:57:09 -0700180 %pMF 00-01-02-03-04-05
181 %pm 000102030405
Andy Shevchenko7c591542012-10-04 17:12:33 -0700182 %pmR 050403020100
Andrew Murray04c55712011-06-15 12:57:09 -0700183
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300184For printing 6-byte MAC/FDDI addresses in hex notation. The ``M`` and ``m``
185specifiers result in a printed address with (``M``) or without (``m``) byte
186separators. The default byte separator is the colon (``:``).
Andrew Murray04c55712011-06-15 12:57:09 -0700187
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300188Where FDDI addresses are concerned the ``F`` specifier can be used after
189the ``M`` specifier to use dash (``-``) separators instead of the default
190separator.
Andrew Murray04c55712011-06-15 12:57:09 -0700191
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300192For Bluetooth addresses the ``R`` specifier shall be used after the ``M``
193specifier to use reversed byte order suitable for visual interpretation
194of Bluetooth addresses which are in the little endian order.
Andrei Emeltchenko76597ff92012-07-30 14:40:23 -0700195
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300196Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700197
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300198IPv4 addresses
199==============
200
201::
Andrew Murray04c55712011-06-15 12:57:09 -0700202
203 %pI4 1.2.3.4
204 %pi4 001.002.003.004
Daniel Borkmann8ecada12013-06-28 15:49:39 +0200205 %p[Ii]4[hnbl]
Andrew Murray04c55712011-06-15 12:57:09 -0700206
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300207For printing IPv4 dot-separated decimal addresses. The ``I4`` and ``i4``
208specifiers result in a printed address with (``i4``) or without (``I4``)
209leading zeros.
Andrew Murray04c55712011-06-15 12:57:09 -0700210
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300211The additional ``h``, ``n``, ``b``, and ``l`` specifiers are used to specify
212host, network, big or little endian order addresses respectively. Where
213no specifier is provided the default network/big endian order is used.
Andrew Murray04c55712011-06-15 12:57:09 -0700214
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300215Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700216
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300217IPv6 addresses
218==============
219
220::
Andrew Murray04c55712011-06-15 12:57:09 -0700221
222 %pI6 0001:0002:0003:0004:0005:0006:0007:0008
223 %pi6 00010002000300040005000600070008
224 %pI6c 1:2:3:4:5:6:7:8
225
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300226For printing IPv6 network-order 16-bit hex addresses. The ``I6`` and ``i6``
227specifiers result in a printed address with (``I6``) or without (``i6``)
228colon-separators. Leading zeros are always used.
Andrew Murray04c55712011-06-15 12:57:09 -0700229
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300230The additional ``c`` specifier can be used with the ``I`` specifier to
231print a compressed IPv6 address as described by
232http://tools.ietf.org/html/rfc5952
Andrew Murray04c55712011-06-15 12:57:09 -0700233
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300234Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700235
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300236IPv4/IPv6 addresses (generic, with port, flowinfo, scope)
237=========================================================
238
239::
Daniel Borkmann10679642013-06-28 19:49:39 +0200240
241 %pIS 1.2.3.4 or 0001:0002:0003:0004:0005:0006:0007:0008
242 %piS 001.002.003.004 or 00010002000300040005000600070008
243 %pISc 1.2.3.4 or 1:2:3:4:5:6:7:8
244 %pISpc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345
245 %p[Ii]S[pfschnbl]
246
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300247For printing an IP address without the need to distinguish whether it``s
248of type AF_INET or AF_INET6, a pointer to a valid ``struct sockaddr``,
249specified through ``IS`` or ``iS``, can be passed to this format specifier.
Daniel Borkmann10679642013-06-28 19:49:39 +0200250
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300251The additional ``p``, ``f``, and ``s`` specifiers are used to specify port
252(IPv4, IPv6), flowinfo (IPv6) and scope (IPv6). Ports have a ``:`` prefix,
253flowinfo a ``/`` and scope a ``%``, each followed by the actual value.
Daniel Borkmann10679642013-06-28 19:49:39 +0200254
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300255In case of an IPv6 address the compressed IPv6 address as described by
256http://tools.ietf.org/html/rfc5952 is being used if the additional
257specifier ``c`` is given. The IPv6 address is surrounded by ``[``, ``]`` in
258case of additional specifiers ``p``, ``f`` or ``s`` as suggested by
259https://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-07
Daniel Borkmann10679642013-06-28 19:49:39 +0200260
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300261In case of IPv4 addresses, the additional ``h``, ``n``, ``b``, and ``l``
262specifiers can be used as well and are ignored in case of an IPv6
263address.
Daniel Borkmann10679642013-06-28 19:49:39 +0200264
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300265Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700266
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300267Further examples::
Daniel Borkmann10679642013-06-28 19:49:39 +0200268
269 %pISfc 1.2.3.4 or [1:2:3:4:5:6:7:8]/123456789
270 %pISsc 1.2.3.4 or [1:2:3:4:5:6:7:8]%1234567890
271 %pISpfc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345/123456789
272
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300273UUID/GUID addresses
274===================
275
276::
Andrew Murray04c55712011-06-15 12:57:09 -0700277
278 %pUb 00010203-0405-0607-0809-0a0b0c0d0e0f
279 %pUB 00010203-0405-0607-0809-0A0B0C0D0E0F
280 %pUl 03020100-0504-0706-0809-0a0b0c0e0e0f
281 %pUL 03020100-0504-0706-0809-0A0B0C0E0E0F
282
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300283For printing 16-byte UUID/GUIDs addresses. The additional 'l', 'L',
284'b' and 'B' specifiers are used to specify a little endian order in
285lower ('l') or upper case ('L') hex characters - and big endian order
286in lower ('b') or upper case ('B') hex characters.
Andrew Murray04c55712011-06-15 12:57:09 -0700287
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300288Where no additional specifiers are used the default big endian
289order with lower case hex characters will be printed.
Andrew Murray04c55712011-06-15 12:57:09 -0700290
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300291Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700292
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300293dentry names
294============
295
296::
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800297
Al Viro4b6ccca2013-09-03 12:00:44 -0400298 %pd{,2,3,4}
299 %pD{,2,3,4}
300
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300301For printing dentry name; if we race with :c:func:`d_move`, the name might be
302a mix of old and new ones, but it won't oops. ``%pd`` dentry is a safer
303equivalent of ``%s`` ``dentry->d_name.name`` we used to use, ``%pd<n>`` prints
304``n`` last components. ``%pD`` does the same thing for struct file.
Al Viro4b6ccca2013-09-03 12:00:44 -0400305
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300306Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700307
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300308block_device names
309==================
310
311::
Dmitry Monakhov1031bc52015-04-13 16:31:35 +0400312
313 %pg sda, sda1 or loop0p1
314
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300315For printing name of block_device pointers.
Dmitry Monakhov1031bc52015-04-13 16:31:35 +0400316
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300317struct va_format
318================
319
320::
Andrew Murray04c55712011-06-15 12:57:09 -0700321
322 %pV
323
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300324For printing struct va_format structures. These contain a format string
325and va_list as follows::
Andrew Murray04c55712011-06-15 12:57:09 -0700326
327 struct va_format {
328 const char *fmt;
329 va_list *va;
330 };
331
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300332Implements a "recursive vsnprintf".
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800333
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300334Do not use this feature without some mechanism to verify the
335correctness of the format string and va_list arguments.
Randy Dunlapb67ad182008-11-12 13:26:55 -0800336
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300337Passed by reference.
Geert Uytterhoeven73306602015-04-15 16:17:14 -0700338
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300339kobjects
340========
341
342::
343
Pantelis Antoniouce4fecf2015-01-21 19:06:14 +0200344 %pO
345
346 Base specifier for kobject based structs. Must be followed with
347 character for specific type of kobject as listed below:
348
349 Device tree nodes:
350
351 %pOF[fnpPcCF]
352
353 For printing device tree nodes. The optional arguments are:
354 f device node full_name
355 n device node name
356 p device node phandle
357 P device node path spec (name + @unit)
358 F device node flags
359 c major compatible string
360 C full compatible string
361 Without any arguments prints full_name (same as %pOFf)
362 The separator when using multiple arguments is ':'
363
364 Examples:
365
366 %pOF /foo/bar@0 - Node full name
367 %pOFf /foo/bar@0 - Same as above
368 %pOFfp /foo/bar@0:10 - Node full name + phandle
369 %pOFfcF /foo/bar@0:foo,device:--P- - Node full name +
370 major compatible string +
371 node flags
372 D - dynamic
373 d - detached
374 P - Populated
375 B - Populated bus
376
377 Passed by reference.
378
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300379
380struct clk
381==========
382
383::
Geert Uytterhoeven900cca22015-04-15 16:17:20 -0700384
385 %pC pll1
386 %pCn pll1
387 %pCr 1560000000
388
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300389For printing struct clk structures. ``%pC`` and ``%pCn`` print the name
390(Common Clock Framework) or address (legacy clock framework) of the
391structure; ``%pCr`` prints the current clock rate.
Geert Uytterhoeven900cca22015-04-15 16:17:20 -0700392
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300393Passed by reference.
Geert Uytterhoeven900cca22015-04-15 16:17:20 -0700394
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300395bitmap and its derivatives such as cpumask and nodemask
396=======================================================
397
398::
Wang Longd0724962015-02-26 03:28:25 +0000399
400 %*pb 0779
401 %*pbl 0,3-6,8-10
402
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300403For printing bitmap and its derivatives such as cpumask and nodemask,
404``%*pb`` output the bitmap with field width as the number of bits and ``%*pbl``
405output the bitmap as range list with field width as the number of bits.
Wang Longd0724962015-02-26 03:28:25 +0000406
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300407Passed by reference.
Randy Dunlapb67ad182008-11-12 13:26:55 -0800408
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300409Flags bitfields such as page flags, gfp_flags
410=============================================
411
412::
Vlastimil Babkaedf14cd2016-03-15 14:55:56 -0700413
414 %pGp referenced|uptodate|lru|active|private
415 %pGg GFP_USER|GFP_DMA32|GFP_NOWARN
416 %pGv read|exec|mayread|maywrite|mayexec|denywrite
417
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300418For printing flags bitfields as a collection of symbolic constants that
419would construct the value. The type of flags is given by the third
420character. Currently supported are [p]age flags, [v]ma_flags (both
421expect ``unsigned long *``) and [g]fp_flags (expects ``gfp_t *``). The flag
422names and print order depends on the particular type.
Vlastimil Babkaedf14cd2016-03-15 14:55:56 -0700423
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300424Note that this format should not be used directly in :c:func:`TP_printk()` part
425of a tracepoint. Instead, use the ``show_*_flags()`` functions from
426<trace/events/mmflags.h>.
Vlastimil Babkaedf14cd2016-03-15 14:55:56 -0700427
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300428Passed by reference.
Vlastimil Babkaedf14cd2016-03-15 14:55:56 -0700429
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300430Network device features
431=======================
432
433::
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800434
435 %pNF 0x000000000000c000
436
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300437For printing netdev_features_t.
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800438
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300439Passed by reference.
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800440
Mauro Carvalho Chehab3b033382017-05-16 22:27:11 -0300441If you add other ``%p`` extensions, please extend lib/test_printf.c with
Rasmus Villemoesd7ec9a02015-11-06 16:30:35 -0800442one or more test cases, if at all feasible.
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800443
Martin Kletzander5e4ee7b2015-11-06 16:30:17 -0800444
Randy Dunlapb67ad182008-11-12 13:26:55 -0800445Thank you for your cooperation and attention.