Commit d7c176e9 authored by Carlos Llamas's avatar Carlos Llamas Committed by Jonathan Corbet
Browse files

docs: printk-formats: update size-casting examples

Since commit 72deb455

 ("block: remove CONFIG_LBDAF") sector_t and
blkcnt_t types are no longer variable in size, making them unsuitable
examples for casting to the largest possible type. This patch replaces
such examples with cycles_t and blk_status_t types, whose sizes depend
on architecture and config options respectively.

Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20210609195058.3518943-1-cmllamas@google.com


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent a9edc03f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment