diff options
Diffstat (limited to 'Documentation/printk-formats.txt')
-rw-r--r-- | Documentation/printk-formats.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt index 3e8cb73ac43c..445ad743ec81 100644 --- a/Documentation/printk-formats.txt +++ b/Documentation/printk-formats.txt | |||
@@ -97,7 +97,7 @@ IPv4 addresses: | |||
97 | 97 | ||
98 | %pI4 1.2.3.4 | 98 | %pI4 1.2.3.4 |
99 | %pi4 001.002.003.004 | 99 | %pi4 001.002.003.004 |
100 | %p[Ii][hnbl] | 100 | %p[Ii]4[hnbl] |
101 | 101 | ||
102 | For printing IPv4 dot-separated decimal addresses. The 'I4' and 'i4' | 102 | For printing IPv4 dot-separated decimal addresses. The 'I4' and 'i4' |
103 | specifiers result in a printed address with ('i4') or without ('I4') | 103 | specifiers result in a printed address with ('i4') or without ('I4') |
@@ -168,6 +168,15 @@ UUID/GUID addresses: | |||
168 | Where no additional specifiers are used the default little endian | 168 | Where no additional specifiers are used the default little endian |
169 | order with lower case hex characters will be printed. | 169 | order with lower case hex characters will be printed. |
170 | 170 | ||
171 | dentry names: | ||
172 | %pd{,2,3,4} | ||
173 | %pD{,2,3,4} | ||
174 | |||
175 | For printing dentry name; if we race with d_move(), the name might be | ||
176 | a mix of old and new ones, but it won't oops. %pd dentry is a safer | ||
177 | equivalent of %s dentry->d_name.name we used to use, %pd<n> prints | ||
178 | n last components. %pD does the same thing for struct file. | ||
179 | |||
171 | struct va_format: | 180 | struct va_format: |
172 | 181 | ||
173 | %pV | 182 | %pV |
@@ -185,11 +194,11 @@ struct va_format: | |||
185 | 194 | ||
186 | u64 SHOULD be printed with %llu/%llx, (unsigned long long): | 195 | u64 SHOULD be printed with %llu/%llx, (unsigned long long): |
187 | 196 | ||
188 | printk("%llu", (unsigned long long)u64_var); | 197 | printk("%llu", u64_var); |
189 | 198 | ||
190 | s64 SHOULD be printed with %lld/%llx, (long long): | 199 | s64 SHOULD be printed with %lld/%llx, (long long): |
191 | 200 | ||
192 | printk("%lld", (long long)s64_var); | 201 | printk("%lld", s64_var); |
193 | 202 | ||
194 | If <type> is dependent on a config option for its size (e.g., sector_t, | 203 | If <type> is dependent on a config option for its size (e.g., sector_t, |
195 | blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a | 204 | blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a |