sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}(hhparenthuba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget+/translations/zh_CN/core-api/printk-formatsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}(hhhh2ubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget+/translations/zh_TW/core-api/printk-formatsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}(hhhhFubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget+/translations/it_IT/core-api/printk-formatsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}(hhhhZubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget+/translations/ja_JP/core-api/printk-formatsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}(hhhhnubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget+/translations/ko_KR/core-api/printk-formatsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}(hhhhubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget+/translations/sp_SP/core-api/printk-formatsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h)How to get printk format specifiers righth]h)How to get printk format specifiers right}(hhhhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhE/var/lib/git/docbuild/linux/Documentation/core-api/printk-formats.rsthKubhtarget)}(h.. _printk-specifiers:h]h}(h]h ]h"]h$]h&]refidprintk-specifiersuh1hhKhhhhhhubh field_list)}(hhh](hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(h$Randy Dunlap h]h paragraph)}(hhh](hRandy Dunlap <}(hRandy Dunlap }(h>hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hAuthorh]hAuthor}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhKubh)}(h(Andrew Murray h]h)}(h&Andrew Murray h](hAndrew Murray <}(hAndrew Murray }(hjhj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj)ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]hah ]h"]printk-specifiersah$]h&]uh1hhhhhhhhKexpect_referenced_by_name}j`hsexpect_referenced_by_id}hhsubh)}(hhh](h)}(h Integer typesh]h Integer types}(hjlhjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghhhhhK ubh literal_block)}(hXIf variable is of Type, use printk format specifier: ------------------------------------------------------------ signed char %d or %hhx unsigned char %u or %x char %u or %x short int %d or %hx unsigned short int %u or %x int %d or %x unsigned int %u or %x long %ld or %lx unsigned long %lu or %lx long long %lld or %llx unsigned long long %llu or %llx size_t %zu or %zx ssize_t %zd or %zx s8 %d or %hhx u8 %u or %x s16 %d or %hx u16 %u or %x s32 %d or %x u32 %u or %x s64 %lld or %llx u64 %llu or %llxh]hXIf variable is of Type, use printk format specifier: ------------------------------------------------------------ signed char %d or %hhx unsigned char %u or %x char %u or %x short int %d or %hx unsigned short int %u or %x int %d or %x unsigned int %u or %x long %ld or %lx unsigned long %lu or %lx long long %lld or %llx unsigned long long %llu or %llx size_t %zu or %zx ssize_t %zd or %zx s8 %d or %hhx u8 %u or %x s16 %d or %hx u16 %u or %x s32 %d or %x u32 %u or %x s64 %lld or %llx u64 %llu or %llx}(hhhjzubah}(h]h ]h"]h$]h&] xml:spacepreserveuh1jxhhhKhjghhubh)}(hIf is architecture-dependent for its size (e.g., cycles_t, tcflag_t) or is dependent on a config option for its size (e.g., blk_status_t), use a format specifier of its largest possible type and explicitly cast to it.h]hIf is architecture-dependent for its size (e.g., cycles_t, tcflag_t) or is dependent on a config option for its size (e.g., blk_status_t), use a format specifier of its largest possible type and explicitly cast to it.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjghhubh)}(h Example::h]hExample:}(hExample:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjghhubjy)}(hAprintk("test: latency: %llu cycles\n", (unsigned long long)time);h]hAprintk("test: latency: %llu cycles\n", (unsigned long long)time);}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhK/hjghhubh)}(h'Reminder: sizeof() returns type size_t.h]h'Reminder: sizeof() returns type size_t.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjghhubh)}(hThe kernel's printf does not support %n. Floating point formats (%e, %f, %g, %a) are also not recognized, for obvious reasons. Use of any unsupported specifier or length qualifier results in a WARN and early return from vsnprintf().h]hThe kernel’s printf does not support %n. Floating point formats (%e, %f, %g, %a) are also not recognized, for obvious reasons. Use of any unsupported specifier or length qualifier results in a WARN and early return from vsnprintf().}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjghhubeh}(h] integer-typesah ]h"] integer typesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h Pointer typesh]h Pointer types}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK9ubh)}(hA raw pointer value may be printed with %p which will hash the address before printing. The kernel also supports extended specifiers for printing pointers of different types.h]hA raw pointer value may be printed with %p which will hash the address before printing. The kernel also supports extended specifiers for printing pointers of different types.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjhhubh)}(hSome of the extended specifiers print the data on the given address instead of printing the address itself. In this case, the following error messages might be printed instead of the unreachable information::h]hSome of the extended specifiers print the data on the given address instead of printing the address itself. In this case, the following error messages might be printed instead of the unreachable information:}(hSome of the extended specifiers print the data on the given address instead of printing the address itself. In this case, the following error messages might be printed instead of the unreachable information:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubjy)}(hm(null) data on plain NULL address (efault) data on invalid address (einval) invalid data on a valid addressh]hm(null) data on plain NULL address (efault) data on invalid address (einval) invalid data on a valid address}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKChjhhubh)}(hhh](h)}(hPlain Pointersh]hPlain Pointers}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKHubjy)}(h$%p abcdef12 or 00000000abcdef12h]h$%p abcdef12 or 00000000abcdef12}(hhhj&ubah}(h]h ]h"]h$]h&]jjuh1jxhhhKLhjhhubh)}(hX=Pointers printed without a specifier extension (i.e unadorned %p) are hashed to prevent leaking information about the kernel memory layout. This has the added benefit of providing a unique identifier. On 64-bit machines the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it gathers enough entropy.h](hXPointers printed without a specifier extension (i.e unadorned %p) are hashed to prevent leaking information about the kernel memory layout. This has the added benefit of providing a unique identifier. On 64-bit machines the first 32 bits are zeroed. The kernel will print }(hXPointers printed without a specifier extension (i.e unadorned %p) are hashed to prevent leaking information about the kernel memory layout. This has the added benefit of providing a unique identifier. On 64-bit machines the first 32 bits are zeroed. The kernel will print hj4hhhNhNubhliteral)}(h ``(ptrval)``h]h(ptrval)}(hhhj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj4ubh! until it gathers enough entropy.}(h! until it gathers enough entropy.hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKNhjhhubh)}(hXWhen possible, use specialised modifiers such as %pS or %pB (described below) to avoid the need of providing an unhashed address that has to be interpreted post-hoc. If not possible, and the aim of printing the address is to provide more information for debugging, use %p and boot the kernel with the ``no_hash_pointers`` parameter during debugging, which will print all %p addresses unmodified. If you *really* always want the unmodified address, see %px below.h](hX-When possible, use specialised modifiers such as %pS or %pB (described below) to avoid the need of providing an unhashed address that has to be interpreted post-hoc. If not possible, and the aim of printing the address is to provide more information for debugging, use %p and boot the kernel with the }(hX-When possible, use specialised modifiers such as %pS or %pB (described below) to avoid the need of providing an unhashed address that has to be interpreted post-hoc. If not possible, and the aim of printing the address is to provide more information for debugging, use %p and boot the kernel with the hjXhhhNhNubj>)}(h``no_hash_pointers``h]hno_hash_pointers}(hhhjahhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjXubhR parameter during debugging, which will print all %p addresses unmodified. If you }(hR parameter during debugging, which will print all %p addresses unmodified. If you hjXhhhNhNubhemphasis)}(h*really*h]hreally}(hhhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjXubh3 always want the unmodified address, see %px below.}(h3 always want the unmodified address, see %px below.hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKThjhhubh)}(hIf (and only if) you are printing addresses as a content of a virtual file in e.g. procfs or sysfs (using e.g. seq_printf(), not printk()) read by a userspace process, use the %pK modifier described below instead of %p or %px.h]hIf (and only if) you are printing addresses as a content of a virtual file in e.g. procfs or sysfs (using e.g. seq_printf(), not printk()) read by a userspace process, use the %pK modifier described below instead of %p or %px.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjhhubeh}(h]plain-pointersah ]h"]plain pointersah$]h&]uh1hhjhhhhhKHubh)}(hhh](h)}(hError Pointersh]hError Pointers}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKaubjy)}(h%pe -ENOSPCh]h%pe -ENOSPC}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKehjhhubh)}(hFor printing error pointers (i.e. a pointer for which IS_ERR() is true) as a symbolic error name. Error values for which no symbolic name is known are printed in decimal, while a non-ERR_PTR passed as the argument to %pe gets treated as ordinary %p.h]hFor printing error pointers (i.e. a pointer for which IS_ERR() is true) as a symbolic error name. Error values for which no symbolic name is known are printed in decimal, while a non-ERR_PTR passed as the argument to %pe gets treated as ordinary %p.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghjhhubeh}(h]error-pointersah ]h"]error pointersah$]h&]uh1hhjhhhhhKaubh)}(hhh](h)}(hSymbols/Function Pointersh]hSymbols/Function Pointers}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKmubjy)}(h%pS versatile_init+0x0/0x110 %ps versatile_init %pSR versatile_init+0x9/0x110 (with __builtin_extract_return_addr() translation) %pB prev_fn_of_versatile_init+0x88/0x88h]h%pS versatile_init+0x0/0x110 %ps versatile_init %pSR versatile_init+0x9/0x110 (with __builtin_extract_return_addr() translation) %pB prev_fn_of_versatile_init+0x88/0x88}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKqhjhhubh)}(hThe ``S`` and ``s`` specifiers are used for printing a pointer in symbolic format. They result in the symbol name with (S) or without (s) offsets. If KALLSYMS are disabled then the symbol address is printed instead.h](hThe }(hThe hjhhhNhNubj>)}(h``S``h]hS}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh and }(h and hjhhhNhNubj>)}(h``s``h]hs}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh specifiers are used for printing a pointer in symbolic format. They result in the symbol name with (S) or without (s) offsets. If KALLSYMS are disabled then the symbol address is printed instead.}(h specifiers are used for printing a pointer in symbolic format. They result in the symbol name with (S) or without (s) offsets. If KALLSYMS are disabled then the symbol address is printed instead.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKxhjhhubh)}(hXThe ``B`` specifier results in the symbol name with offsets and should be used when printing stack backtraces. The specifier takes into consideration the effect of compiler optimisations which may occur when tail-calls are used and marked with the noreturn GCC attribute.h](hThe }(hThe hj.hhhNhNubj>)}(h``B``h]hB}(hhhj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj.ubhX specifier results in the symbol name with offsets and should be used when printing stack backtraces. The specifier takes into consideration the effect of compiler optimisations which may occur when tail-calls are used and marked with the noreturn GCC attribute.}(hX specifier results in the symbol name with offsets and should be used when printing stack backtraces. The specifier takes into consideration the effect of compiler optimisations which may occur when tail-calls are used and marked with the noreturn GCC attribute.hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK|hjhhubh)}(hIf the pointer is within a module, the module name and optionally build ID is printed after the symbol name with an extra ``b`` appended to the end of the specifier.h](hzIf the pointer is within a module, the module name and optionally build ID is printed after the symbol name with an extra }(hzIf the pointer is within a module, the module name and optionally build ID is printed after the symbol name with an extra hjPhhhNhNubj>)}(h``b``h]hb}(hhhjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjPubh& appended to the end of the specifier.}(h& appended to the end of the specifier.hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(hX|%pS versatile_init+0x0/0x110 [module_name] %pSb versatile_init+0x0/0x110 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e] %pSRb versatile_init+0x9/0x110 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e] (with __builtin_extract_return_addr() translation) %pBb prev_fn_of_versatile_init+0x88/0x88 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e]h]hX|%pS versatile_init+0x0/0x110 [module_name] %pSb versatile_init+0x0/0x110 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e] %pSRb versatile_init+0x9/0x110 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e] (with __builtin_extract_return_addr() translation) %pBb prev_fn_of_versatile_init+0x88/0x88 [module_name ed5019fdf5e53be37cb1ba7899292d7e143b259e]}(hhhjrubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubeh}(h]symbols-function-pointersah ]h"]symbols/function pointersah$]h&]uh1hhjhhhhhKmubh)}(hhh](h)}(h"Probed Pointers from BPF / tracingh]h"Probed Pointers from BPF / tracing}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(h)%pks kernel string %pus user stringh]h)%pks kernel string %pus user string}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hX}The ``k`` and ``u`` specifiers are used for printing prior probed memory from either kernel memory (k) or user memory (u). The subsequent ``s`` specifier results in printing a string. For direct use in regular vsnprintf() the (k) and (u) annotation is ignored, however, when used out of BPF's bpf_trace_printk(), for example, it reads the memory it is pointing to without faulting.h](hThe }(hThe hjhhhNhNubj>)}(h``k``h]hk}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh and }(h and hjhhhNhNubj>)}(h``u``h]hu}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubhw specifiers are used for printing prior probed memory from either kernel memory (k) or user memory (u). The subsequent }(hw specifiers are used for printing prior probed memory from either kernel memory (k) or user memory (u). The subsequent hjhhhNhNubj>)}(h``s``h]hs}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh specifier results in printing a string. For direct use in regular vsnprintf() the (k) and (u) annotation is ignored, however, when used out of BPF’s bpf_trace_printk(), for example, it reads the memory it is pointing to without faulting.}(h specifier results in printing a string. For direct use in regular vsnprintf() the (k) and (u) annotation is ignored, however, when used out of BPF's bpf_trace_printk(), for example, it reads the memory it is pointing to without faulting.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] probed-pointers-from-bpf-tracingah ]h"]"probed pointers from bpf / tracingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hKernel Pointersh]hKernel Pointers}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(h$%pK 01234567 or 0123456789abcdefh]h$%pK 01234567 or 0123456789abcdef}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hFor printing kernel pointers which should be hidden from unprivileged users. The behaviour of %pK depends on the kptr_restrict sysctl - see Documentation/admin-guide/sysctl/kernel.rst for more details.h]hFor printing kernel pointers which should be hidden from unprivileged users. The behaviour of %pK depends on the kptr_restrict sysctl - see Documentation/admin-guide/sysctl/kernel.rst for more details.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hThis modifier is *only* intended when producing content of a file read by userspace from e.g. procfs or sysfs, not for dmesg. Please refer to the section about %p above for discussion about how to manage hashing pointers in printk().h](hThis modifier is }(hThis modifier is hj$hhhNhNubju)}(h*only*h]honly}(hhhj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj$ubh intended when producing content of a file read by userspace from e.g. procfs or sysfs, not for dmesg. Please refer to the section about %p above for discussion about how to manage hashing pointers in printk().}(h intended when producing content of a file read by userspace from e.g. procfs or sysfs, not for dmesg. Please refer to the section about %p above for discussion about how to manage hashing pointers in printk().hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]kernel-pointersah ]h"]kernel pointersah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hUnmodified Addressesh]hUnmodified Addresses}(hjShjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhhhhhKubjy)}(h$%px 01234567 or 0123456789abcdefh]h$%px 01234567 or 0123456789abcdef}(hhhj_ubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjNhhubh)}(hXFor printing pointers when you *really* want to print the address. Please consider whether or not you are leaking sensitive information about the kernel memory layout before printing pointers with %px. %px is functionally equivalent to %lx (or %lu). %px is preferred because it is more uniquely grep'able. If in the future we need to modify the way the kernel handles printing pointers we will be better equipped to find the call sites.h](hFor printing pointers when you }(hFor printing pointers when you hjmhhhNhNubju)}(h*really*h]hreally}(hhhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjmubhX want to print the address. Please consider whether or not you are leaking sensitive information about the kernel memory layout before printing pointers with %px. %px is functionally equivalent to %lx (or %lu). %px is preferred because it is more uniquely grep’able. If in the future we need to modify the way the kernel handles printing pointers we will be better equipped to find the call sites.}(hX want to print the address. Please consider whether or not you are leaking sensitive information about the kernel memory layout before printing pointers with %px. %px is functionally equivalent to %lx (or %lu). %px is preferred because it is more uniquely grep'able. If in the future we need to modify the way the kernel handles printing pointers we will be better equipped to find the call sites.hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjNhhubh)}(hXBefore using %px, consider if using %p is sufficient together with enabling the ``no_hash_pointers`` kernel parameter during debugging sessions (see the %p description above). One valid scenario for %px might be printing information immediately before a panic, which prevents any sensitive information to be exploited anyway, and with %px there would be no need to reproduce the panic with no_hash_pointers.h](hPBefore using %px, consider if using %p is sufficient together with enabling the }(hPBefore using %px, consider if using %p is sufficient together with enabling the hjhhhNhNubj>)}(h``no_hash_pointers``h]hno_hash_pointers}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubhX3 kernel parameter during debugging sessions (see the %p description above). One valid scenario for %px might be printing information immediately before a panic, which prevents any sensitive information to be exploited anyway, and with %px there would be no need to reproduce the panic with no_hash_pointers.}(hX3 kernel parameter during debugging sessions (see the %p description above). One valid scenario for %px might be printing information immediately before a panic, which prevents any sensitive information to be exploited anyway, and with %px there would be no need to reproduce the panic with no_hash_pointers.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjNhhubeh}(h]unmodified-addressesah ]h"]unmodified addressesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hPointer Differencesh]hPointer Differences}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(h%td 2560 %tx a00h]h%td 2560 %tx a00}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hHFor printing the pointer differences, use the %t modifier for ptrdiff_t.h]hHFor printing the pointer differences, use the %t modifier for ptrdiff_t.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h Example::h]hExample:}(hExample:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(h@printk("test: difference between pointers: %td\n", ptr2 - ptr1);h]h@printk("test: difference between pointers: %td\n", ptr2 - ptr1);}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubeh}(h]pointer-differencesah ]h"]pointer differencesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hStruct Resourcesh]hStruct Resources}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubjy)}(h%pr [mem 0x60000000-0x6fffffff flags 0x2200] or [mem 0x0000000060000000-0x000000006fffffff flags 0x2200] %pR [mem 0x60000000-0x6fffffff pref] or [mem 0x0000000060000000-0x000000006fffffff pref]h]h%pr [mem 0x60000000-0x6fffffff flags 0x2200] or [mem 0x0000000060000000-0x000000006fffffff flags 0x2200] %pR [mem 0x60000000-0x6fffffff pref] or [mem 0x0000000060000000-0x000000006fffffff pref]}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhj hhubh)}(hFor printing struct resources. The ``R`` and ``r`` specifiers result in a printed resource with (R) or without (r) a decoded flags member.h](h#For printing struct resources. The }(h#For printing struct resources. The hj*hhhNhNubj>)}(h``R``h]hR}(hhhj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj*ubh and }(h and hj*hhhNhNubj>)}(h``r``h]hr}(hhhjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj*ubhX specifiers result in a printed resource with (R) or without (r) a decoded flags member.}(hX specifiers result in a printed resource with (R) or without (r) a decoded flags member.hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(hPassed by reference.h]hPassed by reference.}(hjahj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubeh}(h]struct-resourcesah ]h"]struct resourcesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h"Physical address types phys_addr_th]h"Physical address types phys_addr_t}(hjzhjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhhhhhKubjy)}(h(%pa[p] 0x01234567 or 0x0123456789abcdefh]h(%pa[p] 0x01234567 or 0x0123456789abcdef}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjuhhubh)}(hFor printing a phys_addr_t type (and its derivatives, such as resource_size_t) which can vary based on build options, regardless of the width of the CPU data path.h]hFor printing a phys_addr_t type (and its derivatives, such as resource_size_t) which can vary based on build options, regardless of the width of the CPU data path.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjuhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjuhhubeh}(h]"physical-address-types-phys-addr-tah ]h"]"physical address types phys_addr_tah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDMA address types dma_addr_th]hDMA address types dma_addr_t}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(h(%pad 0x01234567 or 0x0123456789abcdefh]h(%pad 0x01234567 or 0x0123456789abcdef}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hsFor printing a dma_addr_t type which can vary based on build options, regardless of the width of the CPU data path.h]hsFor printing a dma_addr_t type which can vary based on build options, regardless of the width of the CPU data path.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]dma-address-types-dma-addr-tah ]h"]dma address types dma_addr_tah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hRaw buffer as an escaped stringh]hRaw buffer as an escaped string}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubjy)}(h %*pE[achnops]h]h %*pE[achnops]}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hHFor printing raw buffer as an escaped string. For the following buffer::h]hGFor printing raw buffer as an escaped string. For the following buffer:}(hGFor printing raw buffer as an escaped string. For the following buffer:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(h1b 62 20 5c 43 07 22 90 0d 5dh]h1b 62 20 5c 43 07 22 90 0d 5d}(hhhj)ubah}(h]h ]h"]h$]h&]jjuh1jxhhhKhjhhubh)}(hUA few examples show how the conversion would be done (excluding surrounding quotes)::h]hTA few examples show how the conversion would be done (excluding surrounding quotes):}(hTA few examples show how the conversion would be done (excluding surrounding quotes):hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h~%*pE "\eb \C\a"\220\r]" %*pEhp "\x1bb \C\x07"\x90\x0d]" %*pEa "\e\142\040\\\103\a\042\220\r\135"h]h~%*pE "\eb \C\a"\220\r]" %*pEhp "\x1bb \C\x07"\x90\x0d]" %*pEa "\e\142\040\\\103\a\042\220\r\135"}(hhhjFubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(hThe conversion rules are applied according to an optional combination of flags (see :c:func:`string_escape_mem` kernel documentation for the details):h](hTThe conversion rules are applied according to an optional combination of flags (see }(hTThe conversion rules are applied according to an optional combination of flags (see hjThhhNhNubh)}(h:c:func:`string_escape_mem`h]j>)}(hj_h]hstring_escape_mem()}(hhhjahhhNhNubah}(h]h ](xrefcc-funceh"]h$]h&]uh1j=hj]ubah}(h]h ]h"]h$]h&]refdoccore-api/printk-formats refdomainjlreftypefunc refexplicitrefwarn reftargetstring_escape_memuh1hhhhMhjTubh' kernel documentation for the details):}(h' kernel documentation for the details):hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh block_quote)}(hhh]h bullet_list)}(hhh](h list_item)}(ha - ESCAPE_ANYh]h)}(hjh]ha - ESCAPE_ANY}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hc - ESCAPE_SPECIALh]h)}(hjh]hc - ESCAPE_SPECIAL}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hh - ESCAPE_HEXh]h)}(hjh]hh - ESCAPE_HEX}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hn - ESCAPE_NULLh]h)}(hjh]hn - ESCAPE_NULL}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(ho - ESCAPE_OCTALh]h)}(hjh]ho - ESCAPE_OCTAL}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h p - ESCAPE_NPh]h)}(hj h]h p - ESCAPE_NP}(hj hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hs - ESCAPE_SPACE h]h)}(hs - ESCAPE_SPACEh]hs - ESCAPE_SPACE}(hj'hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(h!By default ESCAPE_ANY_NP is used.h]h!By default ESCAPE_ANY_NP is used.}(hjIhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hTESCAPE_ANY_NP is the sane choice for many cases, in particularly for printing SSIDs.h]hTESCAPE_ANY_NP is the sane choice for many cases, in particularly for printing SSIDs.}(hjWhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(h;If field width is omitted then 1 byte only will be escaped.h]h;If field width is omitted then 1 byte only will be escaped.}(hjehjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]raw-buffer-as-an-escaped-stringah ]h"]raw buffer as an escaped stringah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hRaw buffer as a hex stringh]hRaw buffer as a hex string}(hj~hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhhhMubjy)}(hc%*ph 00 01 02 ... 3f %*phC 00:01:02: ... :3f %*phD 00-01-02- ... -3f %*phN 000102 ... 3fh]hc%*ph 00 01 02 ... 3f %*phC 00:01:02: ... :3f %*phD 00-01-02- ... -3f %*phN 000102 ... 3f}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhM hjyhhubh)}(hFor printing small buffers (up to 64 bytes long) as a hex string with a certain separator. For larger buffers consider using :c:func:`print_hex_dump`.h](h}For printing small buffers (up to 64 bytes long) as a hex string with a certain separator. For larger buffers consider using }(h}For printing small buffers (up to 64 bytes long) as a hex string with a certain separator. For larger buffers consider using hjhhhNhNubh)}(h:c:func:`print_hex_dump`h]j>)}(hjh]hprint_hex_dump()}(hhhjhhhNhNubah}(h]h ](jkjlc-funceh"]h$]h&]uh1j=hjubah}(h]h ]h"]h$]h&]refdocjx refdomainjlreftypefunc refexplicitrefwarnj~print_hex_dumpuh1hhhhM%hjubh.}(h.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM%hjyhhubeh}(h]raw-buffer-as-a-hex-stringah ]h"]raw buffer as a hex stringah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hMAC/FDDI addressesh]hMAC/FDDI addresses}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM*ubjy)}(hw%pM 00:01:02:03:04:05 %pMR 05:04:03:02:01:00 %pMF 00-01-02-03-04-05 %pm 000102030405 %pmR 050403020100h]hw%pM 00:01:02:03:04:05 %pMR 05:04:03:02:01:00 %pMF 00-01-02-03-04-05 %pm 000102030405 %pmR 050403020100}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhM.hjhhubh)}(hFor printing 6-byte MAC/FDDI addresses in hex notation. The ``M`` and ``m`` specifiers result in a printed address with (M) or without (m) byte separators. The default byte separator is the colon (:).h](h)}(h``M``h]hM}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh and }(h and hjhhhNhNubj>)}(h``m``h]hm}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh} specifiers result in a printed address with (M) or without (m) byte separators. The default byte separator is the colon (:).}(h} specifiers result in a printed address with (M) or without (m) byte separators. The default byte separator is the colon (:).hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM4hjhhubh)}(hWhere FDDI addresses are concerned the ``F`` specifier can be used after the ``M`` specifier to use dash (-) separators instead of the default separator.h](h'Where FDDI addresses are concerned the }(h'Where FDDI addresses are concerned the hj'hhhNhNubj>)}(h``F``h]hF}(hhhj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj'ubh! specifier can be used after the }(h! specifier can be used after the hj'hhhNhNubj>)}(h``M``h]hM}(hhhjChhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj'ubhG specifier to use dash (-) separators instead of the default separator.}(hG specifier to use dash (-) separators instead of the default separator.hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM8hjhhubh)}(hFor Bluetooth addresses the ``R`` specifier shall be used after the ``M`` specifier to use reversed byte order suitable for visual interpretation of Bluetooth addresses which are in the little endian order.h](hFor Bluetooth addresses the }(hFor Bluetooth addresses the hj\hhhNhNubj>)}(h``R``h]hR}(hhhjehhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj\ubh# specifier shall be used after the }(h# specifier shall be used after the hj\hhhNhNubj>)}(h``M``h]hM}(hhhjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj\ubh specifier to use reversed byte order suitable for visual interpretation of Bluetooth addresses which are in the little endian order.}(h specifier to use reversed byte order suitable for visual interpretation of Bluetooth addresses which are in the little endian order.hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM<hjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubeh}(h]mac-fddi-addressesah ]h"]mac/fddi addressesah$]h&]uh1hhjhhhhhM*ubh)}(hhh](h)}(hIPv4 addressesh]hIPv4 addresses}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMCubjy)}(h5%pI4 1.2.3.4 %pi4 001.002.003.004 %p[Ii]4[hnbl]h]h5%pI4 1.2.3.4 %pi4 001.002.003.004 %p[Ii]4[hnbl]}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMGhjhhubh)}(hFor printing IPv4 dot-separated decimal addresses. The ``I4`` and ``i4`` specifiers result in a printed address with (i4) or without (I4) leading zeros.h](h7For printing IPv4 dot-separated decimal addresses. The }(h7For printing IPv4 dot-separated decimal addresses. The hjhhhNhNubj>)}(h``I4``h]hI4}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh and }(h and hjhhhNhNubj>)}(h``i4``h]hi4}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubhP specifiers result in a printed address with (i4) or without (I4) leading zeros.}(hP specifiers result in a printed address with (i4) or without (I4) leading zeros.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMKhjhhubh)}(hThe additional ``h``, ``n``, ``b``, and ``l`` specifiers are used to specify host, network, big or little endian order addresses respectively. Where no specifier is provided the default network/big endian order is used.h](hThe additional }(hThe additional hjhhhNhNubj>)}(h``h``h]hh}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh, }(h, hjhhhNhNubj>)}(h``n``h]hn}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh, }(hj hjubj>)}(h``b``h]hb}(hhhj) hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh, and }(h, and hjhhhNhNubj>)}(h``l``h]hl}(hhhj< hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh specifiers are used to specify host, network, big or little endian order addresses respectively. Where no specifier is provided the default network/big endian order is used.}(h specifiers are used to specify host, network, big or little endian order addresses respectively. Where no specifier is provided the default network/big endian order is used.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMOhjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjW hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjhhubeh}(h]ipv4-addressesah ]h"]ipv4 addressesah$]h&]uh1hhjhhhhhMCubh)}(hhh](h)}(hIPv6 addressesh]hIPv6 addresses}(hjp hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk hhhhhMVubjy)}(hp%pI6 0001:0002:0003:0004:0005:0006:0007:0008 %pi6 00010002000300040005000600070008 %pI6c 1:2:3:4:5:6:7:8h]hp%pI6 0001:0002:0003:0004:0005:0006:0007:0008 %pi6 00010002000300040005000600070008 %pI6c 1:2:3:4:5:6:7:8}(hhhj| ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMZhjk hhubh)}(hFor printing IPv6 network-order 16-bit hex addresses. The ``I6`` and ``i6`` specifiers result in a printed address with (I6) or without (i6) colon-separators. Leading zeros are always used.h](h:For printing IPv6 network-order 16-bit hex addresses. The }(h:For printing IPv6 network-order 16-bit hex addresses. The hj hhhNhNubj>)}(h``I6``h]hI6}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh and }(h and hj hhhNhNubj>)}(h``i6``h]hi6}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubhr specifiers result in a printed address with (I6) or without (i6) colon-separators. Leading zeros are always used.}(hr specifiers result in a printed address with (I6) or without (i6) colon-separators. Leading zeros are always used.hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM^hjk hhubh)}(hThe additional ``c`` specifier can be used with the ``I`` specifier to print a compressed IPv6 address as described by https://tools.ietf.org/html/rfc5952h](hThe additional }(hThe additional hj hhhNhNubj>)}(h``c``h]hc}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh specifier can be used with the }(h specifier can be used with the hj hhhNhNubj>)}(h``I``h]hI}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh> specifier to print a compressed IPv6 address as described by }(h> specifier to print a compressed IPv6 address as described by hj hhhNhNubh)}(h#https://tools.ietf.org/html/rfc5952h]h#https://tools.ietf.org/html/rfc5952}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhhhMbhjk hhubh)}(hPassed by reference.h]hPassed by reference.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhjk hhubeh}(h]ipv6-addressesah ]h"]ipv6 addressesah$]h&]uh1hhjhhhhhMVubh)}(hhh](h)}(h9IPv4/IPv6 addresses (generic, with port, flowinfo, scope)h]h9IPv4/IPv6 addresses (generic, with port, flowinfo, scope)}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMiubjy)}(h%pIS 1.2.3.4 or 0001:0002:0003:0004:0005:0006:0007:0008 %piS 001.002.003.004 or 00010002000300040005000600070008 %pISc 1.2.3.4 or 1:2:3:4:5:6:7:8 %pISpc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345 %p[Ii]S[pfschnbl]h]h%pIS 1.2.3.4 or 0001:0002:0003:0004:0005:0006:0007:0008 %piS 001.002.003.004 or 00010002000300040005000600070008 %pISc 1.2.3.4 or 1:2:3:4:5:6:7:8 %pISpc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345 %p[Ii]S[pfschnbl]}(hhhj* ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMmhj hhubh)}(hFor printing an IP address without the need to distinguish whether it's of type AF_INET or AF_INET6. A pointer to a valid struct sockaddr, specified through ``IS`` or ``iS``, can be passed to this format specifier.h](hFor printing an IP address without the need to distinguish whether it’s of type AF_INET or AF_INET6. A pointer to a valid struct sockaddr, specified through }(hFor printing an IP address without the need to distinguish whether it's of type AF_INET or AF_INET6. A pointer to a valid struct sockaddr, specified through hj8 hhhNhNubj>)}(h``IS``h]hIS}(hhhjA hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj8 ubh or }(h or hj8 hhhNhNubj>)}(h``iS``h]hiS}(hhhjT hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj8 ubh), can be passed to this format specifier.}(h), can be passed to this format specifier.hj8 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMshj hhubh)}(hThe additional ``p``, ``f``, and ``s`` specifiers are used to specify port (IPv4, IPv6), flowinfo (IPv6) and scope (IPv6). Ports have a ``:`` prefix, flowinfo a ``/`` and scope a ``%``, each followed by the actual value.h](hThe additional }(hThe additional hjm hhhNhNubj>)}(h``p``h]hp}(hhhjv hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubh, }(h, hjm hhhNhNubj>)}(h``f``h]hf}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubh, and }(h, and hjm hhhNhNubj>)}(h``s``h]hs}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubhb specifiers are used to specify port (IPv4, IPv6), flowinfo (IPv6) and scope (IPv6). Ports have a }(hb specifiers are used to specify port (IPv4, IPv6), flowinfo (IPv6) and scope (IPv6). Ports have a hjm hhhNhNubj>)}(h``:``h]h:}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubh prefix, flowinfo a }(h prefix, flowinfo a hjm hhhNhNubj>)}(h``/``h]h/}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubh and scope a }(h and scope a hjm hhhNhNubj>)}(h``%``h]h%}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjm ubh$, each followed by the actual value.}(h$, each followed by the actual value.hjm hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMwhj hhubh)}(hXbIn case of an IPv6 address the compressed IPv6 address as described by https://tools.ietf.org/html/rfc5952 is being used if the additional specifier ``c`` is given. The IPv6 address is surrounded by ``[``, ``]`` in case of additional specifiers ``p``, ``f`` or ``s`` as suggested by https://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-07h](hGIn case of an IPv6 address the compressed IPv6 address as described by }(hGIn case of an IPv6 address the compressed IPv6 address as described by hj hhhNhNubh)}(h#https://tools.ietf.org/html/rfc5952h]h#https://tools.ietf.org/html/rfc5952}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1hhj ubh+ is being used if the additional specifier }(h+ is being used if the additional specifier hj hhhNhNubj>)}(h``c``h]hc}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh- is given. The IPv6 address is surrounded by }(h- is given. The IPv6 address is surrounded by hj hhhNhNubj>)}(h``[``h]h[}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh, }(h, hj hhhNhNubj>)}(h``]``h]h]}(hhhj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh" in case of additional specifiers }(h" in case of additional specifiers hj hhhNhNubj>)}(h``p``h]hp}(hhhjD hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh, }(hj0 hj ubj>)}(h``f``h]hf}(hhhjV hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh or }(h or hj hhhNhNubj>)}(h``s``h]hs}(hhhji hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh as suggested by }(h as suggested by hj hhhNhNubh)}(hGhttps://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-07h]hGhttps://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-07}(hhhj| hhhNhNubah}(h]h ]h"]h$]h&]refurij~ uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhhhM{hj hhubh)}(hIn case of IPv4 addresses, the additional ``h``, ``n``, ``b``, and ``l`` specifiers can be used as well and are ignored in case of an IPv6 address.h](h*In case of IPv4 addresses, the additional }(h*In case of IPv4 addresses, the additional hj hhhNhNubj>)}(h``h``h]hh}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh, }(h, hj hhhNhNubj>)}(h``n``h]hn}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh, }(hj hj ubj>)}(h``b``h]hb}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh, and }(h, and hj hhhNhNubj>)}(h``l``h]hl}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubhK specifiers can be used as well and are ignored in case of an IPv6 address.}(hK specifiers can be used as well and are ignored in case of an IPv6 address.hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hPassed by reference.h]hPassed by reference.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hFurther examples::h]hFurther examples:}(hFurther examples:hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(h%pISfc 1.2.3.4 or [1:2:3:4:5:6:7:8]/123456789 %pISsc 1.2.3.4 or [1:2:3:4:5:6:7:8]%1234567890 %pISpfc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345/123456789h]h%pISfc 1.2.3.4 or [1:2:3:4:5:6:7:8]/123456789 %pISsc 1.2.3.4 or [1:2:3:4:5:6:7:8]%1234567890 %pISpfc 1.2.3.4:12345 or [1:2:3:4:5:6:7:8]:12345/123456789}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj hhubeh}(h]4ipv4-ipv6-addresses-generic-with-port-flowinfo-scopeah ]h"]9ipv4/ipv6 addresses (generic, with port, flowinfo, scope)ah$]h&]uh1hhjhhhhhMiubh)}(hhh](h)}(hUUID/GUID addressesh]hUUID/GUID addresses}(hj# hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubjy)}(h%pUb 00010203-0405-0607-0809-0a0b0c0d0e0f %pUB 00010203-0405-0607-0809-0A0B0C0D0E0F %pUl 03020100-0504-0706-0809-0a0b0c0e0e0f %pUL 03020100-0504-0706-0809-0A0B0C0E0E0Fh]h%pUb 00010203-0405-0607-0809-0a0b0c0d0e0f %pUB 00010203-0405-0607-0809-0A0B0C0D0E0F %pUl 03020100-0504-0706-0809-0a0b0c0e0e0f %pUL 03020100-0504-0706-0809-0A0B0C0E0E0F}(hhhj/ ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj hhubh)}(hFor printing 16-byte UUID/GUIDs addresses. The additional ``l``, ``L``, ``b`` and ``B`` specifiers are used to specify a little endian order in lower (l) or upper case (L) hex notation - and big endian order in lower (b) or upper case (B) hex notation.h](h:For printing 16-byte UUID/GUIDs addresses. The additional }(h:For printing 16-byte UUID/GUIDs addresses. The additional hj= hhhNhNubj>)}(h``l``h]hl}(hhhjF hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj= ubh, }(h, hj= hhhNhNubj>)}(h``L``h]hL}(hhhjY hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj= ubh, }(h, hj= hhhNhNubj>)}(h``b``h]hb}(hhhjl hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj= ubh and }(h and hj= hhhNhNubj>)}(h``B``h]hB}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj= ubh specifiers are used to specify a little endian order in lower (l) or upper case (L) hex notation - and big endian order in lower (b) or upper case (B) hex notation.}(h specifiers are used to specify a little endian order in lower (l) or upper case (L) hex notation - and big endian order in lower (b) or upper case (B) hex notation.hj= hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hrWhere no additional specifiers are used the default big endian order with lower case hex notation will be printed.h]hrWhere no additional specifiers are used the default big endian order with lower case hex notation will be printed.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hPassed by reference.h]hPassed by reference.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]uuid-guid-addressesah ]h"]uuid/guid addressesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h dentry namesh]h dentry names}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubjy)}(h%pd{,2,3,4} %pD{,2,3,4}h]h%pd{,2,3,4} %pD{,2,3,4}}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj hhubh)}(hXFor printing dentry name; if we race with :c:func:`d_move`, the name might be a mix of old and new ones, but it won't oops. %pd dentry is a safer equivalent of %s dentry->d_name.name we used to use, %pd prints ``n`` last components. %pD does the same thing for struct file.h](h*For printing dentry name; if we race with }(h*For printing dentry name; if we race with hj hhhNhNubh)}(h:c:func:`d_move`h]j>)}(hj h]hd_move()}(hhhj hhhNhNubah}(h]h ](jkjlc-funceh"]h$]h&]uh1j=hj ubah}(h]h ]h"]h$]h&]refdocjx refdomainjlreftypefunc refexplicitrefwarnj~d_moveuh1hhhhMhj ubh, the name might be a mix of old and new ones, but it won’t oops. %pd dentry is a safer equivalent of %s dentry->d_name.name we used to use, %pd prints }(h, the name might be a mix of old and new ones, but it won't oops. %pd dentry is a safer equivalent of %s dentry->d_name.name we used to use, %pd prints hj hhhNhNubj>)}(h``n``h]hn}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj ubh; last components. %pD does the same thing for struct file.}(h; last components. %pD does the same thing for struct file.hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hPassed by reference.h]hPassed by reference.}(hj# hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h] dentry-namesah ]h"] dentry namesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hblock_device namesh]hblock_device names}(hj< hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7 hhhhhMubjy)}(h%pg sda, sda1 or loop0p1h]h%pg sda, sda1 or loop0p1}(hhhjH ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj7 hhubh)}(h+For printing name of block_device pointers.h]h+For printing name of block_device pointers.}(hjX hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7 hhubeh}(h]block-device-namesah ]h"]block_device namesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hstruct va_formath]hstruct va_format}(hjq hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl hhhhhMubjy)}(h%pVh]h%pV}(hhhj} ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjl hhubh)}(h`For printing struct va_format structures. These contain a format string and va_list as follows::h]h_For printing struct va_format structures. These contain a format string and va_list as follows:}(h_For printing struct va_format structures. These contain a format string and va_list as follows:hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl hhubjy)}(hCstruct va_format { const char *fmt; va_list *va; };h]hCstruct va_format { const char *fmt; va_list *va; };}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjl hhubh)}(h#Implements a "recursive vsnprintf".h]h'Implements a “recursive vsnprintf”.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl hhubh)}(htDo not use this feature without some mechanism to verify the correctness of the format string and va_list arguments.h]htDo not use this feature without some mechanism to verify the correctness of the format string and va_list arguments.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl hhubh)}(hPassed by reference.h]hPassed by reference.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl hhubeh}(h]struct-va-formatah ]h"]struct va_formatah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hDevice tree nodesh]hDevice tree nodes}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubjy)}(h %pOF[fnpPcCF]h]h %pOF[fnpPcCF]}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj hhubh)}(hSFor printing device tree node structures. Default behaviour is equivalent to %pOFf.h]hSFor printing device tree node structures. Default behaviour is equivalent to %pOFf.}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hhh]j)}(hhh](j)}(hf - device node full_nameh]h)}(hjh]hf - device node full_name}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hn - device node nameh]h)}(hj&h]hn - device node name}(hj&hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hp - device node phandleh]h)}(hj=h]hp - device node phandle}(hj=hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h(P - device node path spec (name + @unit)h]h)}(hjTh]h(P - device node path spec (name + @unit)}(hjThjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjRubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hF - device node flagsh]h)}(hjkh]hF - device node flags}(hjkhjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hc - major compatible stringh]h)}(hjh]hc - major compatible string}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hC - full compatible string h]h)}(hC - full compatible stringh]hC - full compatible string}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]j?j@uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj hhhNhNubh)}(h2The separator when using multiple arguments is ':'h]h6The separator when using multiple arguments is ‘:’}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(h Examples::h]h Examples:}(h Examples:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hX`%pOF /foo/bar@0 - Node full name %pOFf /foo/bar@0 - Same as above %pOFfp /foo/bar@0:10 - Node full name + phandle %pOFfcF /foo/bar@0:foo,device:--P- - Node full name + major compatible string + node flags D - dynamic d - detached P - Populated B - Populated bush]hX`%pOF /foo/bar@0 - Node full name %pOFf /foo/bar@0 - Same as above %pOFfp /foo/bar@0:10 - Node full name + phandle %pOFfcF /foo/bar@0:foo,device:--P- - Node full name + major compatible string + node flags D - dynamic d - detached P - Populated B - Populated bus}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhj hhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]device-tree-nodesah ]h"]device tree nodesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hFwnode handlesh]hFwnode handles}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubjy)}(h%pfw[fP]h]h%pfw[fP]}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(hFor printing information on fwnode handles. The default is to print the full node name, including the path. The modifiers are functionally equivalent to %pOF above.h]hFor printing information on fwnode handles. The default is to print the full node name, including the path. The modifiers are functionally equivalent to %pOF above.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh]j)}(hhh](j)}(h-f - full name of the node, including the pathh]h)}(Hhj1h]h-f - full name of the node, including the path}(hj1hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(h@P - the name of the node including an address (if there is one) h]h)}(h?P - the name of the node including an address (if there is one)h]h?P - the name of the node including an address (if there is one)}(hjLhjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjFubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]j?j@uh1jhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(hExamples (ACPI)::h]hExamples (ACPI):}(hExamples (ACPI):hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h|%pfwf \_SB.PCI0.CIO2.port@1.endpoint@0 - Full node name %pfwP endpoint@0 - Node nameh]h|%pfwf \_SB.PCI0.CIO2.port@1.endpoint@0 - Full node name %pfwP endpoint@0 - Node name}(hhhjyubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(hExamples (OF)::h]hExamples (OF):}(hExamples (OF):hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h%pfwf /ocp@68000000/i2c@48072000/camera@10/port/endpoint - Full name %pfwP endpoint - Node nameh]h%pfwf /ocp@68000000/i2c@48072000/camera@10/port/endpoint - Full name %pfwP endpoint - Node name}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubeh}(h]fwnode-handlesah ]h"]fwnode handlesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h Time and dateh]h Time and date}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM ubjy)}(h%pt[RT] YYYY-mm-ddTHH:MM:SS %pt[RT]s YYYY-mm-dd HH:MM:SS %pt[RT]d YYYY-mm-dd %pt[RT]t HH:MM:SS %pt[RT][dt][r][s]h]h%pt[RT] YYYY-mm-ddTHH:MM:SS %pt[RT]s YYYY-mm-dd HH:MM:SS %pt[RT]d YYYY-mm-dd %pt[RT]t HH:MM:SS %pt[RT][dt][r][s]}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(h.For printing date and time as represented by::h]h-For printing date and time as represented by:}(h-For printing date and time as represented by:hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h-R struct rtc_time structure T time64_t typeh]h-R struct rtc_time structure T time64_t type}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(hin human readable format.h]hin human readable format.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hjBy default year will be incremented by 1900 and month by 1. Use %pt[RT]r (raw) to suppress this behaviour.h]hjBy default year will be incremented by 1900 and month by 1. Use %pt[RT]r (raw) to suppress this behaviour.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hThe %pt[RT]s (space) will override ISO 8601 separator by using ' ' (space) instead of 'T' (Capital T) between date and time. It won't have any effect when date or time is omitted.h]hThe %pt[RT]s (space) will override ISO 8601 separator by using ‘ ‘ (space) instead of ‘T’ (Capital T) between date and time. It won’t have any effect when date or time is omitted.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjhhubeh}(h] time-and-dateah ]h"] time and dateah$]h&]uh1hhjhhhhhM ubh)}(hhh](h)}(h struct clkh]h struct clk}(hj-hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hhhhhM'ubjy)}(h%pC pll1 %pCn pll1h]h%pC pll1 %pCn pll1}(hhhj9ubah}(h]h ]h"]h$]h&]jjuh1jxhhhM+hj(hhubh)}(hFor printing struct clk structures. %pC and %pCn print the name of the clock (Common Clock Framework) or a unique 32-bit ID (legacy clock framework).h]hFor printing struct clk structures. %pC and %pCn print the name of the clock (Common Clock Framework) or a unique 32-bit ID (legacy clock framework).}(hjIhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj(hhubh)}(hPassed by reference.h]hPassed by reference.}(hjWhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hj(hhubeh}(h] struct-clkah ]h"] struct clkah$]h&]uh1hhjhhhhhM'ubh)}(hhh](h)}(h7bitmap and its derivatives such as cpumask and nodemaskh]h7bitmap and its derivatives such as cpumask and nodemask}(hjphjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhhhhhM4ubjy)}(h%*pb 0779 %*pbl 0,3-6,8-10h]h%*pb 0779 %*pbl 0,3-6,8-10}(hhhj|ubah}(h]h ]h"]h$]h&]jjuh1jxhhhM8hjkhhubh)}(hFor printing bitmap and its derivatives such as cpumask and nodemask, %*pb outputs the bitmap with field width as the number of bits and %*pbl output the bitmap as range list with field width as the number of bits.h]hFor printing bitmap and its derivatives such as cpumask and nodemask, %*pb outputs the bitmap with field width as the number of bits and %*pbl output the bitmap as range list with field width as the number of bits.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjkhhubh)}(hThe field width is passed by value, the bitmap is passed by reference. Helper macros cpumask_pr_args() and nodemask_pr_args() are available to ease printing cpumask and nodemask.h]hThe field width is passed by value, the bitmap is passed by reference. Helper macros cpumask_pr_args() and nodemask_pr_args() are available to ease printing cpumask and nodemask.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hjkhhubeh}(h]7bitmap-and-its-derivatives-such-as-cpumask-and-nodemaskah ]h"]7bitmap and its derivatives such as cpumask and nodemaskah$]h&]uh1hhjhhhhhM4ubh)}(hhh](h)}(h8Flags bitfields such as page flags, page_type, gfp_flagsh]h8Flags bitfields such as page flags, page_type, gfp_flags}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMDubjy)}(h%pGp 0x17ffffc0002036(referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff) %pGt 0xffffff7f(buddy) %pGg GFP_USER|GFP_DMA32|GFP_NOWARN %pGv read|exec|mayread|maywrite|mayexec|denywriteh]h%pGp 0x17ffffc0002036(referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff) %pGt 0xffffff7f(buddy) %pGg GFP_USER|GFP_DMA32|GFP_NOWARN %pGv read|exec|mayread|maywrite|mayexec|denywrite}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMHhjhhubh)}(hFor printing flags bitfields as a collection of symbolic constants that would construct the value. The type of flags is given by the third character. Currently supported are:h]hFor printing flags bitfields as a collection of symbolic constants that would construct the value. The type of flags is given by the third character. Currently supported are:}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjhhubj)}(hhh]j)}(hhh](j)}(h=p - [p]age flags, expects value of type (``unsigned long *``)h]h)}(hjh](h)p - [p]age flags, expects value of type (}(h)p - [p]age flags, expects value of type (hjhhhNhNubj>)}(h``unsigned long *``h]hunsigned long *}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh)}(h)hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h;t - page [t]ype, expects value of type (``unsigned int *``)h]h)}(hjh](h(t - page [t]ype, expects value of type (}(h(t - page [t]ype, expects value of type (hjhhhNhNubj>)}(h``unsigned int *``h]hunsigned int *}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh)}(hjhjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMRhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h)}(h``unsigned long *``h]hunsigned long *}(hhhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hj:ubh)}(hjhj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMShj6ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5g - [g]fp_flags, expects value of type (``gfp_t *``) h]h)}(h4g - [g]fp_flags, expects value of type (``gfp_t *``)h](h(g - [g]fp_flags, expects value of type (}(h(g - [g]fp_flags, expects value of type (hjdhhhNhNubj>)}(h ``gfp_t *``h]hgfp_t *}(hhhjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjdubh)}(hjhjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMThj`ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j?j@uh1jhhhMQhjubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(h>The flag names and print order depends on the particular type.h]h>The flag names and print order depends on the particular type.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjhhubh)}(hNote that this format should not be used directly in the :c:func:`TP_printk()` part of a tracepoint. Instead, use the show_*_flags() functions from .h](h9Note that this format should not be used directly in the }(h9Note that this format should not be used directly in the hjhhhNhNubh)}(h:c:func:`TP_printk()`h]j>)}(hjh]h TP_printk()}(hhhjhhhNhNubah}(h]h ](jkjlc-funceh"]h$]h&]uh1j=hjubah}(h]h ]h"]h$]h&]refdocjx refdomainjlreftypefunc refexplicitrefwarnj~ TP_printkuh1hhhhMXhjubh_ part of a tracepoint. Instead, use the show_*_flags() functions from .}(h_ part of a tracepoint. Instead, use the show_*_flags() functions from .hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMXhjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjhhubeh}(h]6flags-bitfields-such-as-page-flags-page-type-gfp-flagsah ]h"]8flags bitfields such as page flags, page_type, gfp_flagsah$]h&]uh1hhjhhhhhMDubh)}(hhh](h)}(hNetwork device featuresh]hNetwork device features}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM_ubjy)}(h%pNF 0x000000000000c000h]h%pNF 0x000000000000c000}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMchjhhubh)}(hFor printing netdev_features_t.h]hFor printing netdev_features_t.}(hjhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehjhhubh)}(hPassed by reference.h]hPassed by reference.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghjhhubeh}(h]network-device-featuresah ]h"]network device featuresah$]h&]uh1hhjhhhhhM_ubh)}(hhh](h)}(h'V4L2 and DRM FourCC code (pixel format)h]h'V4L2 and DRM FourCC code (pixel format)}(hj6hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMjubjy)}(h%p4cch]h%p4cc}(hhhjBubah}(h]h ]h"]h$]h&]jjuh1jxhhhMnhj1hhubh)}(hlPrint a FourCC code used by V4L2 or DRM, including format endianness and its numerical value as hexadecimal.h]hlPrint a FourCC code used by V4L2 or DRM, including format endianness and its numerical value as hexadecimal.}(hjRhjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj1hhubh)}(hPassed by reference.h]hPassed by reference.}(hj`hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshj1hhubh)}(h Examples::h]h Examples:}(h Examples:hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhj1hhubjy)}(ht%p4cc BG12 little-endian (0x32314742) %p4cc Y10 little-endian (0x20303159) %p4cc NV12 big-endian (0xb231564e)h]ht%p4cc BG12 little-endian (0x32314742) %p4cc Y10 little-endian (0x20303159) %p4cc NV12 big-endian (0xb231564e)}(hhhj{ubah}(h]h ]h"]h$]h&]jjuh1jxhhhMwhj1hhubeh}(h]%v4l2-and-drm-fourcc-code-pixel-formatah ]h"]'v4l2 and drm fourcc code (pixel format)ah$]h&]uh1hhjhhhhhMjubh)}(hhh](h)}(hRusth]hRust}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM|ubjy)}(h%pAh]h%pA}(hhhjubah}(h]h ]h"]h$]h&]jjuh1jxhhhMhjhhubh)}(hcOnly intended to be used from Rust code to format ``core::fmt::Arguments``. Do *not* use it from C.h](h2Only intended to be used from Rust code to format }(h2Only intended to be used from Rust code to format hjhhhNhNubj>)}(h``core::fmt::Arguments``h]hcore::fmt::Arguments}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1j=hjubh. Do }(h. Do hjhhhNhNubju)}(h*not*h]hnot}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh use it from C.}(h use it from C.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]rustah ]h"]rustah$]h&]uh1hhjhhhhhM|ubeh}(h] pointer-typesah ]h"] pointer typesah$]h&]uh1hhhhhhhhK9ubh)}(hhh](h)}(hThanksh]hThanks}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hrIf you add other %p extensions, please extend with one or more test cases, if at all feasible.h]hrIf you add other %p extensions, please extend with one or more test cases, if at all feasible.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(h-Thank you for your cooperation and attention.h]h-Thank you for your cooperation and attention.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]thanksah ]h"]thanksah$]h&]uh1hhhhhhhhMubeh}(h])how-to-get-printk-format-specifiers-rightah ]h"])how to get printk format specifiers rightah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjUerror_encodingUTF-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confapep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacefile_insertion_enabled raw_enabledKline_length_limitM'syntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_link embed_imagesenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}h]hasnameids}(j/j,j`hjjjjjjjjjjjjjKjHjjjjjrjojjjjjvjsjjjjjh je j j j j j j j4 j1 ji jf j j jjjjj%j"jhjejjjjj.j+jjjjj'j$u nametypes}(j/Nj`jNjNjNjNjNjNjKNjNjNjrNjNjNjvNjNjNjh Nj Nj Nj Nj4 Nji Nj NjNjNj%NjhNjNjNj.NjNjNj'Nuh}(j,hhhjjgjjjjjjjjjjjHjjjNjjjoj jjujjjsjjjyjjje jj jk j j j j j1 j jf j7 j jl jj jjj"jjej(jjkjjj+jjj1jjj$ju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]h)}(hhh]h7Hyperlink target "printk-specifiers" is not referenced.}(hhhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1juba transformerN include_log] decorationNhhub.