Files
erofs-linux/block
Srivatsa S. Bhat f33ff110ef block, char_dev: Use correct format specifier for unsigned ints
register_blkdev() and __register_chrdev_region() treat the major
number as an unsigned int. So print it the same way to avoid
absurd error statements such as:
"... major requested (-1) is greater than the maximum (511) ..."
(and also fix off-by-one bugs in the error prints).

While at it, also update the comment describing register_blkdev().

Signed-off-by: Srivatsa S. Bhat <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-03-15 17:59:24 +01:00
..
2017-11-10 19:53:25 -07:00
2018-02-11 14:34:03 -08:00
…
…