X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Documentation%2Fprintk-formats.txt;h=6f4eb322ffafe817f269dbf84c7cfa5bc3926e77;hb=335a67d2ad481b03607bf30a38c28178fa1ad61a;hp=445ad743ec814ee4571c175884d3ccce4ffda11a;hpb=9d2cd7048b1ec21309e2d1a32bf50732eb5d5de8;p=~andy%2Flinux diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt index 445ad743ec8..6f4eb322ffa 100644 --- a/Documentation/printk-formats.txt +++ b/Documentation/printk-formats.txt @@ -55,14 +55,21 @@ Struct Resources: For printing struct resources. The 'R' and 'r' specifiers result in a printed resource with ('R') or without ('r') a decoded flags member. -Physical addresses: +Physical addresses types phys_addr_t: - %pa 0x01234567 or 0x0123456789abcdef + %pa[p] 0x01234567 or 0x0123456789abcdef For 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. Passed by reference. +DMA addresses types dma_addr_t: + + %pad 0x01234567 or 0x0123456789abcdef + + For printing a dma_addr_t type which can vary based on build options, + regardless of the width of the CPU data path. Passed by reference. + Raw buffer as a hex string: %*ph 00 01 02 ... 3f %*phC 00:01:02: ... :3f