docs: printk-formats: update size-casting examples
authorCarlos Llamas <cmllamas@google.com>
Wed, 9 Jun 2021 19:50:58 +0000 (19:50 +0000)
committerJonathan Corbet <corbet@lwn.net>
Mon, 14 Jun 2021 14:12:01 +0000 (08:12 -0600)
commitd7c176e9b5329b4a490b3d8ea49564fc9ff11071
tree86aa0849909914192428d21af330e020744774f1
parenta9edc03f13dbd51095b38ef0371d24e7ec7ae693
docs: printk-formats: update size-casting examples

Since commit 72deb455b5ec ("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: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20210609195058.3518943-1-cmllamas@google.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/core-api/printk-formats.rst